[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Getting generated ID by sequence
andydale
do-not-reply at jboss.com
Mon Mar 5 13:31:42 EST 2007
Hi,
Try declaring your sdequence as so:
@SequenceGenerator(name = "tsperson_sequence", allocationSize=1, sequenceName = "SEQ_TSPERSON_ID")
You must have the allocationSize=1 (or some other value) or it uses some kind of hi-lo strategy.
Cheers,
Andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025152#4025152
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025152
More information about the jboss-user
mailing list