Question

I'm trying to understand how Hibernate works under the hood, how it manages lazy loading, transactions, data mappers, unit of work, identity maps, etc.

I wrote a small object model, and I downloaded Hibernate source code for debugging it.

I'm kind of lost, is this the best approach? Does documentation on these issues exist out there (web) ?

Any suggestions will be greatly appreciated.

Was it helpful?

Solution

Try the excellent book : Hibernate in Action, also debugging through the source is helpful but (I speak from experience of nhibernate only) understanding the principles before the implementation may be a better approach.

OTHER TIPS

Hibernate in Action is old what you need is the 2nd edition Java Persistence in Action. This does a great job at going into the exotic cases and dealing with legacy db amongst other things but before you go spending money you should really look at this doc there you will see the reference docs as well as the FAQ, Common Problems, Advanced Problems plus you will see the annotations references which you will need if you are not using xml for your configuration.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top