Hibernate: Difference between revisions

From Wiki RB4
Line 7: Line 7:
[[Image:HibernateDevelopmentProcess.jpg]]
[[Image:HibernateDevelopmentProcess.jpg]]


#copy the following libs to the application lib directory:<br>
#copy the following libs to the application lib directory:<br>ant-antlr-1.6.5.jar<br>asm-attrs.jar<br>asm.jar<br>cglib-2.1.3.jar<br>commons-collections-2.1.1.jar<br>commons-logging-1.0.4.jar<br>dom4j-1.6.1.jar<br>
ant-antlr-1.6.5.jar<br>
ejb3-persistence.jar<br>hibernate-annotations.jar<br>hibernate-commons-annotations.jar<br>hibernate-validator.jar<br>hibernate3.jar<br>jta.jar<br>log4j-1.2.11.jar<br>
asm-attrs.jar<br>
asm.jar<br>
cglib-2.1.3.jar<br>
commons-collections-2.1.1.jar<br>
commons-logging-1.0.4.jar<br>
dom4j-1.6.1.jar<br>
ejb3-persistence.jar<br>
hibernate-annotations.jar<br>
hibernate-commons-annotations.jar<br>
hibernate-validator.jar<br>
hibernate3.jar<br>
jta.jar<br>
log4j-1.2.11.jar<br>
mm.mysql-2.0.8-bin.jar<br>
mm.mysql-2.0.8-bin.jar<br>

Revision as of 20:58, 5 June 2007

Introduction

Hibernate is an open source object/relational mapping tool for Java. Hibernate lets you develop persistent classes following common Java idiom - including association, inheritance, polymorphism, composition and the Java collections framework.

Hibernate makes use of persistent objects commonly called as POJO (POJO = "Plain Old Java Object".) along with XML mapping documents for persisting objects to the database layer. The term POJO refers to a normal Java objects that does not serve any other special role or implement any special interfaces of any of the Java frameworks (EJB, JDBC, DAO, JDO, etc...). Hibernate uses runtime reflection to determine the persistent properties of a class. The objects to be persisted are defined in a mapping document, which serves to describe the persistent fields and associations, as well as any subclasses or proxies of the persistent object. The mapping documents are compiled at application startup time and provide the framework with necessary information for a class. Additionally, they are used in support operations, such as generating the database schema or creating stub Java source files.

Development Process

  1. copy the following libs to the application lib directory:
    ant-antlr-1.6.5.jar
    asm-attrs.jar
    asm.jar
    cglib-2.1.3.jar
    commons-collections-2.1.1.jar
    commons-logging-1.0.4.jar
    dom4j-1.6.1.jar

ejb3-persistence.jar
hibernate-annotations.jar
hibernate-commons-annotations.jar
hibernate-validator.jar
hibernate3.jar
jta.jar
log4j-1.2.11.jar
mm.mysql-2.0.8-bin.jar