最全三大框架整合(使用映射)——Dept.java

来源:互联网 发布:独立思考 知乎 编辑:程序博客网 时间:2024/05/23 17:27
package org.entity;import java.util.HashSet;import java.util.Set;/** * Dept entity. @author MyEclipse Persistence Tools */public class Dept implements java.io.Serializable {// Fieldsprivate 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 accessorspublic 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;}}

阅读全文
1 0
原创粉丝点击