E customizing sample applications, Customizing caveat emptor, Added files – HP Integrity NonStop J-Series User Manual
Page 221: Hibernate.properties, Setenv, Appendix e: customizing sample applications, Customizing sample applications

E Customizing Sample Applications
Customizing Caveat Emptor
To customize the Caveat Emptor sample application to run on NonStop systems, three files were
added and one file was modified.
Added Files
•
•
•
Modified File
•
Added Files
hibernate.properties
(<My SASH
Home>\hibernate\samples\eg\src\main\resources\hibernate.properties
)
This file provides hibernate configuration to Caveat Emptor.
•
The content of the hibernate.properties file is:
##------------------------------------------------------------------------------
# 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
#hibernate.connection.catalog auctioncat
#hibernate.connection.schema auctionsch
#-------------------------------------------------------------------------------
# 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
#hibernate.connection.catalog auctioncat
#hibernate.connection.schema auctionsch
#For JDBC Type 4 Driver:
#
#
#
#
#
setenv
(<My SASH Home>\hibernate\samples\eg\setup\setenv)
This script file sets the Hibernate and JDBC libraries in the NonStop environment.
The content of this script file is:
#!/bin/ksh
hibernatehome="
mavenrepository="
t4jdbc="
t2jdbc="
Usage="\n Usage: ./setenv
2'\n For JDBC/MX Type4 driver use 'T4'\n"
usage()
Customizing Caveat Emptor 221