HaDN was a very good resource, though, for getting my first medium-scale project up and running using Hibernate, so I can't more highly recommend it.
Look at the last paragraph of 4.3 on page 131.
Originally posted by Gayatri Ganesh:
I am unable to understand the difference between persistence by reachablity and persistence by cascading.
The next section (4.3.1) then describes the concept of persistence by reachability but concludes with this (last sentence on page 132):
There is more than one model for transitive persistence. The best known is persistence by reachability, which we'll discuss first. Although some basic principles are the same, Hibernate uses its own, more powerful model, as you'll see later.
[ My emphasis in bold ]
The authors' self-contratulating aside, the point is that Hibernate doesn't use persistence by reachability. Instead it uses its own form of it called transitive persistence.
Let's look at Hibernate's more flexible transitive persistence model.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton