最全三大框架整合(使用映射)——Dept.java
发布日期:2021-05-14 13:07:22 浏览次数:21 分类:精选文章

本文共 1002 字,大约阅读时间需要 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 { private Integer deptno; private String dname; private String loc; private Set emps = new HashSet<>();

    /**

    • 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 getEmps() { return emps; }

    public void setEmps(Set emps) { this.emps = emps; } }

上一篇:最全三大框架整合(使用映射)——Emp.java
下一篇:java三大框架实现任务调度——IRemindService

发表评论

最新留言

哈哈,博客排版真的漂亮呢~
[***.90.31.176]2025年04月25日 09时24分54秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章