package org.entity; import java.util.HashSet; import java.util.Set; /** * Dept entity. @author MyEclipse Persistence Tools */ public class Dept implements java.io.Serializable { // Fields private Integer deptno; private String dname; private String loc; private Set<Emp> emps = new HashSet<Emp>(0); // Constructors /** default constructor */ public Dept() { } /** minimal constructor */ public Dept(Integer deptno) { this.deptno = deptno; } /** full constructor */ public Dept(Integer deptno, String dname, String loc, Set emps) { this.deptno = deptno; this.dname = dname; this.loc = loc; this.emps = emps; } // Property accessors public Integer getDeptno() { return this.deptno; } public void setDeptno(Integer deptno) { this.deptno = deptno; } public String getDname() { return this.dname; } public void setDname(String dname) { this.dname = dname; } public String getLoc() { return this.loc; } public void setLoc(String loc) { this.loc = loc; } public Set<Emp> getEmps() { return emps; } public void setEmps(Set<Emp> emps) { this.emps = emps; } }
最全三大框架整合(使用映射)——Dept.java
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
最全三大框架整合(使用映射)——Emp.hbm.xml
...
java hibernate xml .net eclipse -
最全三大框架整合(使用映射)——index.jsp
"> 添加部门 --> 部门名称: 地址: ...
html css java d3 3c -
最全三大框架整合(使用映射)——applicationContext.xml里面的配置
applicationContext.xml: classpath:jdbc.properties org.hiber...
spring xml hibernate sql oracle