0 Replies Latest reply on Jun 12, 2007 4:02 AM by Patrick Krämer

    Using SequenceGenerator with Embedded EJB3.0

    Patrick Krämer Newbie

      Hi,

      I have developed an application with embedded EJB3.0.
      The Ids of all Entity Beans should be generated automatic, so I use
      @SequenceGenerator and @GeneratedValue(strategy=GenerationType.SEQUENCE,...) as Generator Strategy.

      When I deploy the EntityBeans I get a warning that Hibernate does not support SequenceGenerator.initialValue().

      It seems that it is or was a thing which would be fixed.
      http://forum.hibernate.org/viewtopic.php?p=2311691&sid=bdcd84788cb9cdc85173bd5bddf780b0


      Is there a other way to generate the id automtic? Or can I try to change the hibernate-all.jar from the embedded libs with a actual hibernate.jar?

      Thanks for help