HIBERNATE JBoss.org
 |  Register  | 
     
News 
About 
   Feature List 
   Road Map 
Documentation 
   Related Projects 
   External Documentation 
Download 
Forum & Mailinglists 
Support & Training 
JIRA Issue Tracking
Wiki Community Area


Hibernate Public Training Courses


Get Hibernate in Action eBook!


JavaWorld 2003 Finalist


Jolt Award 2004 Winner
      
Documentation > Getting Started

Getting Started

Day 1: Download and Install Hibernate

  1. Download Hibernate 2.1 and extract the archive
  1. rename the extracted directory to hibernate
  1. place your JDBC driver jar file in the lib directory
  1. edit etc/hibernate.properties, specifying values for your database (Hibernate will create a schema for the demo automatically)
  1. from a command prompt in the install dir
    1. if you have Ant installed, type ant eg
    2. if not, type build eg under Windows
    3. the example should run successfully
  1. browse the sourcecode of the example in the eg directory
  1. edit hibernate.properties again, setting hibernate.show_sql=true
  1. run the example again, and look at the SQL statements Hibernate generates
  1. 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)
  1. look over these presentation slides and tutorials to get a feel for what Hibernate is really all about

Day 2: Read the Documentation

  1. Read one or two of the intro articles listed here. This one is a great start.
  1. Read the Hibernate Reference Documentation.
  1. Read the FAQ. (All of it!)
  1. Consider buying the ebook or print version of Hibernate in Action to get it all in one.

Day 3: Get Hibernate Running in Tomcat

  1. Download and install Tomcat.
  1. Read the instructions.

Day 4: Start Coding!

      

coWiki