有部门表(PxDept)和员工表(PxEmployee)关系是PxDept(1)->PxEmployee(N) 首先PxDept.hbm.xml中这样设置 <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Mapping fi ...
yuzexu
搜索本博客
博客分类
最近加入圈子
最新评论