Setenv – HP Integrity NonStop H-Series User Manual
Page 356

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 is used to set the Hibernate and JDBC libraries in the NonStop environment. The
content of this script file is:
#!/bin/ksh
hibernatehome=”
t4jdbc=”
t2jdbc=”
Usage="\n Usage: ./setenv
2'\n For JDBC/MX Type4 driver use 'T4'\n"
usage()
{
echo $Usage
exit
}
if [ $# -ne 1 ] ;
then
usage
fi
if [ $1 != "T2" ] && [ $1 != "T4" ] ;
then
usage
fi
################################################################################
#CLASSPATHs for JDBC/MX Type 2 Drivers
if [ $1 = T2 ];
then
export CLASSPATH=$CLASSPATH:$t2jdbc/lib/jdbcMx.jar
export CLASSPATH=$CLASSPATH:$t2jdbc/lib/libjdbcMx.so
export _RLD_LIB_PATH=$t2jdbc/lib
fi
################################################################################
356
Customizing Sample Application