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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user