Removing the employeerowmapper.java file, Adding dependency jar files, Files – HP Integrity NonStop H-Series User Manual

Page 394: Adding dependency

Advertising
background image

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping
package="com.hp.empinfo.domain">
<class name="Employee">
<id name="empid">
<column name="emp_id"/>
</id>
<property name="firstname">
<column name="first_name"/>
</property>
<property name="lastname">
<column name="last_name"/>
</property>
<property name="age">
<column name="age"/>
</property>
<property name="email">
<column name="email"/>
</property>
</class>
</hibernate-mapping>

Removing the

EmployeeRowMapper.java

File

The EmpInfo application uses the

EmployeeRowMapper.java

class for mapping various

database table entities. Because Hibernate maps database table entities using the Hibernate
mapping file (

.hbm

file), the EmpInfo application will no longer use the

EmployeeRowMapper.java

file for mapping purposes. Therefore, you must delete the

EmployeeRowMapper.java

file from the

com.hp.empinfo.domain

package.

Adding Dependency

JAR

Files

To incorporate the features of Hibernate 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 19-1 Dependency

JAR

Files

Source Location

Dependency

JAR

Files

<Spring Home>\lib\antlr

antlr-2.7.6.jar

<Spring Home>\lib\cglib

cglib-nodep-2.1_3.jar

<Spring Home>\lib\jakarta-commons

commons-dbcp.jar

<Spring Home>\lib\jakarta-commons

commons-pool.jar

<Spring Home>\lib\hibernate

hibernate3.jar

<Hibernate Home>\lib

hibernate3sqlmx.jar

<Spring Home>\lib\j2ee

jta.jar

<Spring Home>\lib\log4j

log4j-1.2.15.jar

<Spring Home>\lib\slf4j

slf4j-api-1.5.0.jar

<Spring Home>\lib\slf4j

slf4j-log4j12-1.5.0.jar

394

Integrating Hibernate into Spring

Advertising
This manual is related to the following products: