Downloading the hibernate distribution on – HP Integrity NonStop J-Series User Manual

Page 93

Advertising
background image

Downloading the Hibernate Distribution on Windows

NOTE:

The Hibernate distribution described here is for Hibernate version 4.1.1.

1.

Go to

http://www.hibernate.org/downloads.html

.

2.

Click on the release bundles hyperlink under Release bundle section.

A web page from sourceforge.net,showing various Hibernate packages that can be
downloaded, appears.

3.

Click hibernate4, and then click on 4.1.1.Final.

The links to the following files appear:

•

hibernate-release-4.1.1.Final.zip

•

hibernate-release-4.1.1.Final.tgz

4.

Download the hibernate-release-4.1.1.Final.zip file.

NOTE:
•

The hibernate-release-4.1.1.Final.zip and
hibernate-release-4.1.1.Final.tgz

files include the Hibernate sample

application, the Hibernate framework libraries, Hibernate Annotations, and Hibernate
Entity Manager sub-projects. They do not include third party libraries that are required
to build the sample application.

•

The difference between hibernate-release-4.1.1.Final.zip and
hibernate-release-4.1.1.Final.tgz

files is in their compression format.

•

The sample applications, namely Caveat Emptor and Event Manager web application,
discussed in this section have been verified using Hibernate version 3.5.1.

5.

Extract the hibernate-release-4.1.1.Final.zip file into a directory on the Windows
system.

This directory will be the <Hibernate Home>.

Downloading Hibernate Dependency JAR Files using Gradle

Because Hibernate 4.1.1 dependency JARs are placed in the Maven repository, you must download
the dependency JAR files using Gradle.

NOTE:

If you are downloading the Hibernate 3.5.1 or 3.6.8 dependency JARs, you must

download using Maven.

1.

Go to the <Hibernate Home>\project directory on the Windows system.

2.

Run the following command to build the Hibernate framework and create the Hibernate
dependency JARs:

command prompt> gradle clean build -x test

The Hibernate framework, Hibernate sub-projects, and dependency JAR files are downloaded
to C:\Documents and Settings\<User name
>\.gradle\caches\artifacts-8\filestore

where,

<User name>

is the name of the user account being used on the Windows system.

Including the Hibernate Dialect for the SQL/MX database

The Hibernate dialect for the SQL/MX database is required for running any Hibernate application
on a NonStop system.

Installing the Hibernate Framework

93

Advertising
This manual is related to the following products: