A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
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.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Why not to use Increment generator type in clustered deployment environment?
Websphere deployment tool
Changing a Field to Auto-Generation Type after Table is already created
Cordinality/Multiplicities in Deployment diagram?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014