beautypg.com

F sample jdbc configuration for hibernate, Sample jdbc – HP Integrity NonStop J-Series User Manual

Page 338

background image

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">



com.tandem.sqlmx.SQLMXDriver
jdbc:sqlmx://


org.hibernate.dialect.SqlmxDialect


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">



com.tandem.t4jdbc.SQLMXDriver
jdbc:t4sqlmx://:


org.hibernate.dialect.SqlmxDialect


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

This manual is related to the following products: