Well, I’ve been ill for a few days, so working on learning Hibernate wasn’t first on my mind.
I ordered a book about it, so I could look up some “official” solutions to problems I had and solved myself, such as using Hibernate in EJB’s.
The book looks really interesting, but I don’t know if I’ll read it fro cover to cover.
velthuiz doesn't have anything on their life list yet…
With the documentation from www.hibernate.org, it’s also not that difficult to create associations between objects. The difficult part is in using the objects in web applications.
JBOSS should be easy to use with Hibernate, but when using one of the proposed patterns, a DAOFactory, It is very difficult to correctly set which session to use and which Transaction manager to use, etc. I yet have to find an extensive example doing this, without using ejb3.0
Starting to learn to use Hibernate is simple. The quick-start documentation on http://www.hibernate.com is easy to follow.
In the Eclipse IDE with the MyEclipse extensions, there’s also a nice configuration wizard that helps making mappings from an existing database, but sometimes that wizards does too much, so I’m back at programming the classes and mappings by hand (still quite simple while you have a nice example). The MyEclipse extensions also have a quickstart tutorial.
Basic Hibernate with one-on-one mappings from tables to objects is learned in a day. Now the object composition etc come into view. That doesn’t seem too difficult, but it’s slightly more complicated…
