[jboss-user] [EJB 3.0] - Re: Problem using SequenceGenerator
Arno Werr
do-not-reply at jboss.com
Thu Jul 27 17:00:49 EDT 2006
it looks like the postgres sequence returned 1. But the SequenceHiLoGenerated inserted a value of 50.
I guess, it's because initialValue - default - 1 and allocationSize - 50. I have test table along with cabin table and this test table (you know, to test connections in pool) receives the first allocation block - 1 to 49.
Cabin receives next 50
@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME)
| public @interface SequenceGenerator {
| String name();
| String sequenceName() default "";
| int initialValue() default 1;
| int allocationSize() default 50;
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961430#3961430
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961430
More information about the jboss-user
mailing list