beautypg.com

Hibernate.properties – HP Integrity NonStop J-Series User Manual

Page 213

background image

2.

Modify the hibernate.cfg.xml file:

Add a reference for the Hibernate mapping file under the <session-factory> tag.

Add a reference for the Hibernate dialect file by including the following property tag
under the <session-factory> tag.


org.hibernate.dialect.SqlmxDialect

Enable auto-creation of database tables using the Hibernate mapping file by including
the following property tag under the <session-factory> tag.

create

The hibernate.cfg.xml file now appears as:


"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">


create
true



org.hibernate.dialect.SqlmxDialect




hibernate.properties

The hibernate.properties file includes information on the SQL/MX database.

To create the hibernate.properties file:
1.

On the Project Explorer frame, right-click EmployeeInfo and select New > File.

The New File dialog box appears.

2.

Change the parent folder to the EmployeeInfo/src directory. In the File name field, type
hibernate.properties

. Click Finish.

The hibernate.properties file is created.

Overview of EmpIoyeeInfo

213

This manual is related to the following products: