In this blog series I want to go through the examples in James Elliotts book „Hibernate – a developers notebook“ using
object/relation mapping service Hibernate 3.0 instead of Hibernate 2.x that this book was written about and noting the differences, i.e. what I had to change to get them working.
I enjoyed reading „Hibernate – a developers notebook“ by James Elliott . In order to put my hands on hibernate I want to try out the examples of the book. While it describes Hibernate 2 I want to try it out with Hibernate 3.0 . Not having used Hibernate before I’m a complete newbie and may stumble over things an experienced Hibernate-developer has no problems with.
I didn’t download Ant in the first place because I already had Ant 1.5 installed. Foreshadowing part 2, it will turn out that Apache Ant 1.6 is required for the HibernateToolTask so I later installed that.
I then downloaded HSQLDB 184.108.40.206 without problems.
From some Java Magazin CD-ROM I used a source distribution of Hibernat 3.0.1, installed and compiled it. In order to create
java-files from hbm-files we need hibernate-tools.jar which we get by downloading hibernate-tools-3.1.0.alpha5.zip and extracting it from org.hibernate.eclipse_3.1.0.alpha5.jar that lives within that zip-file.
Finally, I ended up with the following files in the examples lib directory:
ant-1.6.2.jar ant-antlr-1.6.2.jar ant-junit-1.6.2.jar ant-launcher-1.6.2.jar antlr-2.7.5H3.jar asm-attrs.jar asm.jar cglib-2.1.jar commons-collections-2.1.1.jar commons-logging-1.0.4.jar dom4j-1.6.jar ehcache-1.1.jar hibernate-tools.jar hibernate3.jar hsqldb.jar jdbc2_0-stdext.jar jta.jar jtidy-r8-21122004.jar log4j-1.2.9.jar velocity-1.4.jar velocity-tools-generic-1.1.jar xerces-2.6.2.jar xml-apis.jar
I’m not sure if every single jar is required (especially the ant-xxx.jar files).