Manual
3. Modify the hibernate.properties file depending on the JDBC driver type you plan to
use.
• If you plan to use the JDBC Type 2 driver, the SQL/MX settings for JDBC Type 2 driver
in the hibernate.properties file must appear as:
#----------------------------------------------------------------------------
# SQL/MX Settings for JDBC Type 2 Driver
hibernate.connection.driver_class=com.tandem.sqlmx.SQLMXDriver
hibernate.connection.url=jdbc:sqlmx://
hibernate.connection.username=
hibernate.connection.password=
hibernate.connection.catalog=employeeinfocat
hibernate.connection.schema=employeeinfosch
NOTE: Since JDBC Type 2 driver resides on the NonStop system, you need not enter
the username and password in the jdbc.username and jdbc.password fields.
• If you plan to use the JDBC Type 4 driver, the SQL/MX settings for JDBC Type 4 driver
in the hibernate.properties file must appear as:
#----------------------------------------------------------------------------
# SQL/MX Settings for JDBC Type 4 Driver
hibernate.connection.driver_class= com.tandem.t4jdbc.SQLMXDriver
hibernate.connection.url= jdbc:t4sqlmx:// <HP NonStop System IP Address>:<Port No.>
hibernate.connection.username=<HP NonStop Username>
hibernate.connection.password=<HP NonStop Password>
hibernate.connection.catalog=employeeinfocat
hibernate.connection.schema=employeeinfosch
NOTE:
— If you are using the JDBC Type 4 driver, enter the JDBC URL (NonStop system IP
Address and Port Number of the JDBC data source), NonStop system username,
and password.
— The name of the database catalog used in the example is employeeinfocat and
the schema name is employeeinfosch. If these database catalog and schema
names conflict with any of the existing catalog and schema names on your NonStop
system, modify the database catalog and schema names in the
hibernate.properties file.
This completes the development of the EmployeeInfo project. The structure of the EmployeeInfo
project must appear as follows:
Figure 17-15 shows the EmployeeInfo Project Structure dialog box.
348 Getting Started with Hibernate