F sample jdbc configuration for hibernate, Sample jdbc – HP Integrity NonStop J-Series User Manual
Page 338
![background image](/manuals/397993/338/background.png)
F Sample JDBC Configuration for Hibernate
This appendix describes the consolidated JDBC Type 2 driver configuration and the JDBC Type 4
driver configuration in the hibernate.cfg.xml and the hibernate.properties files.
•
JDBC Type 2 driver configurations
The consolidated JDBC Type 2 driver configuration in hibernate.cfg.xml is as follows:
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
The SQL/MX settings for JDBC Type 2 driver in hibernate.properties appear as follows:
##---------------------------------------------------------------------
# SQL/MX Settings for JDBC Type 2 Driver
hibernate.dialect=org.hibernate.dialect.SqlmxDialect
hibernate.connection.driver_class=com.tandem.sqlmx.SQLMXDriver
hibernate.connection.url=jdbc:sqlmx://
hibernate.connection.username=
hibernate.connection.password=
•
JDBC Type 4 driver configurations
The consolidated JDBC Type 4 driver configuration in hibernate.cfg.xml is as follows:
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
The SQL/MX settings for JDBC Type 4 driver in hibernate.properties appear as follows:
#----------------------------------------------------------------------
# SQL/MX Settings for JDBC Type 4 Driver
hibernate.dialect=org.hibernate.dialect.SqlmxDialect
hibernate.connection.driver_class=com.tandem.t4jdbc.SQLMXDriver
hibernate.connection.url=jdbc:t4sqlmx://
hibernate.connection.username=
hibernate.connection.password=
338 Sample JDBC Configuration for Hibernate