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: