Can anyone suggest me a good book on hibernate ?
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I am new to Hibernate. Was searching for a book for it.
Can anyone suggest me a good book on hibernate ?
Thanks,
Gayatri
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
It's written by Christian Bauer and Gavin King, the main developers of Hibernate.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hibernate - A Developer's Notebook from Oreilly is good for beginner. It is practical, hands-on with examples. What I like most is the structure of each topic. 1st - How do I do that? (What to do), 2nd - What just happened? (explain why), 3rd - What about (more explanation or extension).
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Did you find that HaDN was still useful with HiA? Or did HiA cover most of the information in HaDN? I did note that HiA was a little short on setting up the environment.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Theodore Casser
Code Poet
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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.
could you find in it how to map inheritance?
java amateur
-
-
Number of slices to send:Optional 'thank-you' note:
-
-

-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Its a good book but I feel there are a few topics which I am unable to understand from it.
Associations in chapter 3 and cascade persistence of chapter 4 are two topics till now I am unable to clear my concepts on.
I looked at the documentation on hibernate.org but it wasn't of much help.
Can anyone guide me on these 2 topics ?
Thanks,
Gayatri
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
But some of us here might be able to answer your questions.-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I have been using it extensively in the project now and feel that these books do the job.
If you have specific questions regarding using Hibernate, both this forum and the Hibernate Forum are very active and are full of large-hearted souls willing to share their experience!
Cheers, Sathya Srinivasan - SCJP 1.2, SCWCD 1.2, SCMAD 1.0
Co-Author of Whizlabs SCMAD Certification Exam Simulator and SCMAD Exam Guide Book
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I also read Hibernate in Action.
thanks
daniel
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I am unable to understand the difference between persistence by reachablity and persistence by cascading.
If you look at page 110 of Hibernate in Action, the last 2 lines of the page say :
"The cascade attribute tells Hibernate to make any new Bid instance persistence (that is, save it in the database) if the Bid is referenced by a persistent Item."
Isn't this similar to Persistence by reachability ?
What I understand of Persistence by reachability (correct me if I am wrong ) is :
Whenever a transient object is referenced by another object which is persistent, then the transient object becomes persistent. But if persistent object becomes transient, it is removed from the db but can't be removed from memory because it maybe referenced by some other objects and Hibernate has no algorithm to find out objects which are not referenced by anyone to delete them from memory.
So what is the difference between the two ?
Can anyone please advise ?
Thanks,
-Gayatri
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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.
| Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry. Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |








