|
|
|
Getting Started
Day 1: Download and Install Hibernate
- Download Hibernate 2.1 and extract the archive
- rename the extracted directory to hibernate
- place your JDBC driver jar file in the lib directory
- edit etc/hibernate.properties, specifying values for your database (Hibernate will create a schema for the demo automatically)
- from a command prompt in the install dir
- if you have Ant installed, type ant eg
- if not, type build eg under Windows
- the example should run successfully
- browse the sourcecode of the example in the eg directory
- edit hibernate.properties again, setting hibernate.show_sql=true
- run the example again, and look at the SQL statements Hibernate generates
- edit etc/log4j.properties, setting the category net.sf.hibernate to debug and run the example a third time (you can use the Hibernate log to help during troubleshooting)
- look over these presentation slides and tutorials to get a feel for what Hibernate is really all about
Day 2: Read the Documentation
- Read one or two of the intro articles listed here. This one is a great start.
- Read the Hibernate Reference Documentation.
- Read the FAQ. (All of it!)
- Consider buying the ebook or print version of Hibernate in Action to get it all in one.
Day 3: Get Hibernate Running in Tomcat
- Download and install Tomcat.
- Read the instructions.
Day 4: Start Coding!
|
|
|
|
|