
Tag archives for Hibernate
A simple post concerning the HashCode, Equals methods in Java world. These methods allow containers to 'categorize' the objects it contains and so find them more quickly.
This is particularly true of all containers whose name begins with 'Hash' (eg. HashSet, HashMap, ...). These containers can contain objects on which an order is not necessarily defined (and easily defined) as opposed ...more»
After my first post concerning Hibernate Java/Hibernate: generate universally a unique object ID with ORM/Hibernate persistence layer, I propose you a post about the concurrency management with a brief presentation of Hibernate versioning, its limits with a problematic case and a simple solution to resolve it. So, here, an simple solution used in an application with a layer ORM (object-relational ...more»
In most applications, it is necessary to generate universally a unique object ID. Often, this information which is used like primary key in database, is generated via an Oracle sequencer or procedure. And its value is not really predictable. So, here, an simple solution used in an application with a layer ORM (object-relational mapping) like Hibernate:
First, it's singleton ...more»
