Adding dependency jar files, Downloading hibernate entity manager, Adding dependency – HP Integrity NonStop H-Series User Manual
Page 408: Files
Adding Dependency
JAR
Files
Adding the dependency
JAR
files involves the following tasks:
1.
Downloading Hibernate Entity Manager
2.
Downloading Hibernate Entity Manager
To use JPA with Hibernate, the
javassist.jar
and
ejb3-persistence.jar
dependency
JAR
files present in the Hibernate Entity Manager package must be downloaded.
To download the Hibernate Entity Manger, complete the following steps:
1.
Go to
A page displaying a list of Hibernate Entity Manager Releases appears.
2.
Click 3.2.0.GA Release.
3.
Click
hibernate-entitymanager-3.2.0.GA.zip
and download it to a location on
your Windows system.
4.
After the download is complete, unzip the
hibernate-entitymanager-3.2.0.GA.zip
file to a location on your Windows system.
For example, this location could be
<Hibernate Entity Manager Home>
.
Adding Dependency
JAR
Files
To incorporate the features of JPA in the EmpInfo application, the following
JAR
files, other than
the ones added while developing EmpInfo application, must be added in the EmpInfo project
library.
Table 20-1 Dependency
JAR
Files
Source Location
Dependency
JAR
Files
<Hibernate Entity Manager Home>
ejb3-persistence.jar
<Hibernate Entity Manager Home>
javassist.jar
<Spring Home>\lib\hibernate
hibernate-annotations.jar
<Spring Home>\lib\hibernate
hibernate-commons-annotations.jar
<Spring Home>\lib\hibernate
hibernate-entitymanager.jar
To add the dependency
JAR
files in the project library path and to resolve the J2EE module
dependency on these
JAR
files, follow the instructions in the
Adding Dependency JAR Files in
section in the
chapter.
The EmpInfo application is now modified to integrate JPA with Hibernate into a Spring
application.
shows the Project Explorer View.
408
Integrating JPA with Hibernate into Spring