关于如何配置请参看:Hibernate学习笔记(一)--用MyEclipse 6.5+MySQL 5.0的环境跑起来 准备:建表
用MySQL在名为STMS数据库中建表Titems
src/org.lxh.hibernate4.TItems.java
src/org.lxh.hibernate4.TDvds.java
src/org.lxh.hibernate4.TBooks.java
src/org.lxh.hibernate4.Titems.hbm.xml
src/hibernate.cfg.xml
src/org.lxh.hibernate4.TItemsOperate.java
src/org.lxh.hibernate4.Test.java
例子结构:
Powered by: BlogJava Copyright © ∪∩BUG