This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I am trying to build a standalone application that uses hibernate to connect to a postgres database. I have managed to make it work by using hibernate.cfg.xml and hibernate.hbm.xml to map the classes to the tables. But this is not what I really want. I'd rather use the tag mapping, something like this:
Can anybody pretty please tell me what I have to do to make it work the tag way? Or point to a tutorial?
I would suggest JAVA PERSISTENCE with HIBERNATE (by Christian Bauer and Gavin King) is a good reference book to strengthen the basics of Hibernate.
Nice examples and clear understanding of the concepts.
SCJP 6(83%), SCWCD 5.0(100%)
Joined: Jun 08, 2011
@Ram Narayan.M: Thank you, all works fine now.
@Bhavesh Dak: Thank you, I hope I won't have to go any deeper than this with hibernate. But if I do I'll get the book.
@everybody: Someone please kill that fly, it's been annoying the moose for too long.