[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [eclipselink-users] Ids not being used
|
- From: James Sutherland <jamesssss@xxxxxxxxx>
- Date: Tue, 28 Jul 2009 08:20:09 -0700 (PDT)
- Delivered-to: eclipselink-users@eclipse.org
50 is the default preallocation size, but all the preallocated ids should be
used. Are you creating a new EntityManagerFactory each time? Please include
your config.
cl333r wrote:
>
> Folks, a simple example, after I insert one or more entities into the
> table the next id value starts with a 50 offset, and it happens every
> time. Hence it looks like a lot of id values will never be used. Is it
> true?
> Is there a "wiser" way to "spend" id numbers (except the "identity"
> solution)?
>
> Using MySQL 5.0 on Ubuntu, JPA with EclipseLink. Happens for all
> generation types except IDENTITY but can't use it because it lets me know
> the ID of a newly created entity only after I commit it to the db.
>
-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
http://www.eclipse.org/eclipselink/
EclipseLink , http://www.oracle.com/technology/products/ias/toplink/
TopLink
Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink ,
http://wiki.oracle.com/page/TopLink TopLink
Forums: http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
http://www.nabble.com/EclipseLink-f26430.html EclipseLink
Book: http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
--
View this message in context: http://www.nabble.com/Ids-not-being-used-tp24644801p24701572.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.