A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a license for
this week in the
Object Relational Mapping
Why not to use Increment generator type in clustered deployment environment?
Joined: Aug 23, 2010
Aug 25, 2010 00:58:09
Here is the small query:
I was going through a tutorial in which i found that Increment generator type should not be used in clustered deployment environment.
Can anybody tell me the reason behind the same?
Joined: Apr 14, 2004
Aug 25, 2010 02:13:19
Because the value is generated by Hibernate rather than the database. If you have multiple JVMs generating ids for the same entity you can't guarantee the value is unique.
I agree. Here's the link:
subject: Why not to use Increment generator type in clustered deployment environment?
Cordinality/Multiplicities in Deployment diagram?
Websphere deployment tool
Changing a Field to Auto-Generation Type after Table is already created
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013