give all out to learn Hibernate
People doing this are also doing these things:
Entries
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.
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…
I wouldn’t say, i learnt all nitty gritties of hibernate, but i learnt it decent enough to get basicthins working. Still so much to explore.
There is still a lot about Hibernate that I do not know and do not understand, but for now, I feel that I have learned Hibernate. I have either put together or helped put together several applications using it and am comfortable with how it works and what it can do.
For anyone working with J2EE applications that need to talk to a database, I strongly recommend you take the time to investigate Hibernate. It is one amazing framework.





