[jboss-user] [EJB 3.0] - Using SequenceGenerator with Embedded EJB3.0

pKraemer do-not-reply at jboss.com
Tue Jun 12 04:02:51 EDT 2007


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

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

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



More information about the jboss-user mailing list