HP Integrity NonStop J-Series User Manual
Page 94
![background image](/manuals/397993/94/background.png)
The DIALECT file (which includes hibernate4sqlmx.jar) is distributed as a part of the SQL/MX
Hibernate Dialect - T0873AAD and can be downloaded from Scout.
To obtain the hibernate4sqlmx.jar file, complete the following steps:
1.
Download the DIALECT file from Scout. For information on how to download from Scout, see
2.
Add the .zip extension to it.
3.
Extract the DIALECT.zip file to a location on the Windows system.
The SQL/MX-Hibernate-Dialect folder containing the dialects appears.
4.
Place hibernate4sqlmx.jar in <Hibernate Home>\lib.
NOTE:
•
If you have already extracted the SAMPLES.zip file from Scout, you can find the
hibernate4sqlmx.jar
file at <My SASH Home>\hibernate\sqlmxdialect.
•
hibernate4sqlmx.jar
is the Hibernate dialect file for SQL/MX database that maps
Hibernate Query Language (HQL) to SQL/MX specific queries.
You can now transfer the Hibernate distribution to the NonStop system.
Copying the Hibernate Distribution from Windows to NonStop
1.
Go to <Hibernate Home> and create a JAR file of the <Hibernate Home>\lib directory
on the Windows system:
command prompt> cd <Hibernate Home>
command prompt> jar -cvf hibernate_lib.jar lib
For example:
command prompt> cd C:\hibernate-release-4.1.1.Final
command prompt> jar -cvf hibernate_lib.jar lib
2.
Create a Hibernate directory <NonStop Hibernate Home> in the OSS environment on
the NonStop system:
OSS> mkdir -p <NonStop Hibernate Home>
For example, create a directory structure/usr/tandem/sash/
hibernate-release-4.1.1.Final
as follows:
OSS> mkdir -p /usr/tandem/sash/hibernate-release-4.1.1.Final
3.
Copy the hibernate_lib.jar and hibernate4.jar files from
OSS> cd <NonStop Hibernate Home>
OSS> jar -xvf hibernate_lib.jar
After extraction,
Home>/lib
sub-directory.
NOTE:
The contents of the <NonStop Hibernate Home>/lib directory on the NonStop
system must be exactly same as the <Hibernate Home>\lib directory on the Windows
system.
4.
Go to C:\Documents and Settings\<User name> and create a JAR file of the <User
name>\.gradle
directory on the Windows system:
command prompt> cd C:\Documents and Settings\<User name>
command prompt> jar -cvf hibernate_Dependency.jar .gradle
For example:
command prompt> cd C:\Documents and Settings\hpadmin
command prompt> jar -cvf hibernate_Dependency.jar .gradle
94
Hibernate Framework