You should be familiar with the basic object states and the persistence interfaces; the previous topics are required reading to understand this topic.
First we’ll show you how transitive persistence can make your work with complex object networks easier.
Let’s start with transitive persistence and store more than one object at a time.
Real, nontrivial applications work not only with single objects, but rather with networks of objects.
We optimize and reduce the amount of code that is necessary to store objects and discuss the most efficient processing options.When an entity doesn't exactly return the value that had been set by NH, it is considered dirty and gets updated in every session.For instance: replacing the NH persistent collection in a property setter. It's a general "not understanding transactions" problem.The Hibernate's save Or Update method is very useful it inserts the new record in the database if the entity is new. If the entity is old (already exists in database) then updates the modified value into the table.