Example of integrating hibernate into spring – HP Integrity NonStop J-Series User Manual
Page 238

Example of Integrating Hibernate into Spring
The EmpInfo application (described in the
“Getting Started with Spring” (page 38)
section) is a
Spring application that uses JDBC for handling database operations.
This section describes how to use Hibernate for handling database operations of the EmpInfo
application.
Prerequisites
The prerequisites for integrating the EmpInfo application with Hibernate are:
•
Basic knowledge of the Spring and Hibernate frameworks.
•
EmpInfo application (explained in the
“Getting Started with Spring” (page 38)
section)
developed on the Windows system.
•
Following software installed on the NonStop system:
NonStop iTP WebServer version 7.x or later
◦
◦
NSJSP version 6.1
◦
NonStop SQL/MX version 2.3
◦
JDBC Type 2 driver or JDBC Type 4 driver for the installed SQL/MX version
◦
NSJ version 6.0
•
Following software installed on the Windows system:
JDK version 1.5
◦
◦
JDBC Type 4 driver for the installed SQL/MX version
◦
Eclipse Galileo IDE version 3.5.2
Activities involved
Integrating the EmpInfo application with Hibernate involves the following tasks:
•
“Modifying EmpInfo on Windows using Eclipse Galileo IDE” (page 238)
•
“Deploying EmpInfo on NonStop” (page 248)
•
“Running EmpInfo on NonStop” (page 248)
Modifying EmpInfo on Windows using Eclipse Galileo IDE
EmpInfo developed in the
“Getting Started with Spring” (page 38)
section is the starting point to
demonstrate the integration of Hibernate with Spring applications.
Following is the screen shot of the final structure of the EmpInfo application that was developed in
the
“Getting Started with Spring” (page 38)
section:
238 Integrating Frameworks