- 建立Person實體類.
- 建立PersonDao.
- 建立PersonManager 作為PersonDao的業務
- 使用JSF, Struts 2, Spring MVC or Tapestry建立WEB層應用
一.建立Person實體類.
- 建立一個pojo加進JPA的Annotations








































































2.用Maven從一個對象建立一個數據庫表
打開src/main/resources/hibernate.cfg.xml 在里面加上


然后運行mvn compile hibernate3:hbm2ddl
就會生成數據庫表

文章來源:http://www.aygfsteel.com/liuwentao253/archive/2007/08/30/141217.html