[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - JBoss configuration enabling usage of Hibernate's SequenceSt

isto.nikula do-not-reply at jboss.com
Thu Nov 13 09:25:03 EST 2008


I have JBoss 4.2.2GA and MySQL5. My application is using EJB3 entity beans the ID fields of which are annotated with @GeneratedValue

For portability reasons I don't want to use MySQL's auto incrementation and would prefer a simple "sequence" table. Fortunately Hibernate has exactly what I need, i.e. org.hibernate.id.enhanced.SequenceStyleGenerator.

The question: how to configure JBoss to use Hibernate's SequenceStyleGenerator for EJB3 entities?



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189093#4189093

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4189093



More information about the jboss-user mailing list