[jboss-user] [EJB 3.0] - Re: Primary key generator best practices? (Postgres specific
kpiis
do-not-reply at jboss.com
Tue Jun 5 12:24:57 EDT 2007
"andydale" wrote : don't forget to add allocationSize = 1 to the @SequenceGenerator annotation, or what is stored migth not match the sequence values.
|
| Cheers,
|
| Andy
You are right, the default value is 50, but if you look in property of an sequence in DB you will see :
CREATE SEQUENCE address_seq
| INCREMENT 1
| MINVALUE 1
| MAXVALUE 9223372036854775807
| START 1
| CACHE 1;
| ALTER TABLE address_seq OWNER TO postgres;
and I suppose it's mistake of JPA realization or DB.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051454#4051454
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051454
More information about the jboss-user
mailing list