<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.sapient.hibernate.basic">
<class name="Book" table="DEMO_BOOK">
<id name="bookId" column="ID"/>
<property name="name" column="NAME"/>
<property name="author" column="ISBN"/>
<property name="price" column="PRICE"/>
</class>
</hibernate-mapping><!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="hibernate.connection.url">jdbc:hsqldb:hsql://localhost/</property>
<property name="hibernate.connection.username">SA</property>
<property name="hibernate.connection.password"></property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.HSQLDialect</property>
<property name="hibernate.hbm2ddl.auto">create</property>
<!-- Mapping files -->
<mapping resource="Book.hbm.xml"/>
</session-factory>
</hibernate-configuration>Dear All,
Please download the 2 attached XML files and also download the libraries from the link below :-
https://docs.google.com/open?id=0B8h4mcJh9pJeYzM3OTZhZDgtYjg0MS00N2FhLTk5MzMtOTc1NGU5MDExY2U2
Thanks and Regards,
Vivek Mehta
No comments:
Post a Comment