ssh(Spring+Spring mvc+hibernate)——Dept.java
发布日期:2021-05-14 13:10:45 浏览次数:16 分类:精选文章

本文共 1157 字,大约阅读时间需要 3 分钟。

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 id;    private String name;    private String loc;    private Set emps = new HashSet(0);    // Constructors    /** default constructor */    public Dept() {    }    /** minimal constructor */    public Dept(Integer id) {        this.id = id;    }    /** full constructor */    public Dept(Integer id, String name, String loc, Set emps) {        this.id = id;        this.name = name;        this.loc = loc;        this.emps = emps;    }    // Property accessors    public Integer getId() {        return this.id;    }    public void setId(Integer id) {        this.id = id;    }    public String getName() {        return this.name;    }    public void setName(String name) {        this.name = name;    }    public String getLoc() {        return this.loc;    }    public void setLoc(String loc) {        this.loc = loc;    }    public Set getEmps() {        return this.emps;    }    public void setEmps(Set emps) {        this.emps = emps;    }}
上一篇:ssh(Spring+Spring mvc+hibernate)——Dept.hbm.xml
下一篇:ssh(Spring+Spring mvc+hibernate)——Emp.hbm.xml

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2025年04月16日 08时03分12秒