CodeWeblog.com » lt,entity bean,jpa » Spring2.5 + Struts1.3.8 + JPA (Hibernate to achieve) the integration of three

Spring2.5 + Struts1.3.8 + JPA (Hibernate to achieve) the integration of three

Reprint please specify: from http://blog.csdn.net/M_ChangGong/ Author: Zhang Yan Kwong

The preparation of the article the main entity bean and the DAO layer.

Created in the src package com.zyg.ssj.bean, and in the preparation of the package type Student, such documents as follows:












Created in the src package com.zyg.ssj.dao.jpa, and in the package to create the implementation class StudentDao interface StudentDaoImpl, such documents as follows:




Thus,
the entity bean and the DAO layer code completion, we are prepared under a service layer code.

Code have been prepared, but is now very sleepy, and then write it tomorrow.





Created in the src package com.zyg.ssj.dao, and in the interface package created StudentDao, the interface file as follows:
Digg Technorati StumbleUpon Mixx del.icio.us Reddit BlinkList Furl YahooMyWeb feedburner

Tags: lt (RSS), entity bean (RSS), jpa (RSS), import java (RSS), java util (RSS), public string (RSS), import org (RSS), public interface (RSS), public void (RSS), persistence (RSS), implementation class (RSS), blog (RSS), public abstract void (RSS), column length (RSS), zhang yan (RSS), sprin (RSS), stuname (RSS)

Permalink: http://www.codeweblog.com/spring2-5-struts1-3-8-jpa-hibernate-to-achieve-the-integration-of-three/

Leave a reply