0 Replies Latest reply on Nov 13, 2008 9:25 AM by isto.nikula

    JBoss configuration enabling usage of Hibernate's SequenceSt

      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?