users@glassfish.java.net

TableGenerator/allocationSize discussion

From: <glassfish_at_javadesktop.org>
Date: Tue, 11 Mar 2008 05:24:06 PST

Hi folks,

I thought I would start a little JPA discussion on autogenerated ids.

I have noticed that when I use TABLE strategy, my new entity's IDs are yanked up by 50 every time I re-deploy my application on my AppServer.

I understand this is decided by the allocationSize variable (that per default is 50).
However I don't get why this variable isn't 1 per default??
[Message sent by forum member 'slingblade' (slingblade)]

http://forums.java.net/jive/thread.jspa?messageID=263331