
最全三大框架整合(使用映射)——Emp.java
发布日期:2021-05-14 13:07:23
浏览次数:14
分类:精选文章
本文共 2113 字,大约阅读时间需要 7 分钟。
Emp Entity Class - Java EEA Model Emp Entity Class - Detailed Structure
package org.entity;import java.util.Date;/** * Emp entity with complete attributes and persistence features */public class Emp implements java.io.Serializable { // Fields private Integer empno; private Dept dept; private String ename; private String job; private Integer mgr; private Date hiredate; private Double sal; private Double comm; // Constructors public Emp() { } // Default constructor public Emp(Integer empno) { this.empno = empno; } public Emp(Integer empno, Dept dept, String ename, String job, Integer mgr, Date hiredate, Double sal, Double comm) { this.empno = empno; this.dept = dept; this.ename = ename; this.job = job; this.mgr = mgr; this.hiredate = hiredate; this.sal = sal; this.comm = comm; } // Accessors public Integer getEmpno() { return this.empno; } public void setEmpno(Integer empno) { this.empno = empno; } public Dept getDept() { return this.dept; } public void setDept(Dept dept) { this.dept = dept; } public String getEname() { return this.ename; } public void setEname(String ename) { this.ename = ename; } public String getJob() { return this.job; } public void setJob(String job) { this.job = job; } public Integer getMgr() { return this.mgr; } public void setMgr(Integer mgr) { this.mgr = mgr; } public Date getHiredate() { return this.hiredate; } public void setHiredate(Date hiredate) { this.hiredate = hiredate; } public Double getSal() { return this.sal; } public void setSal(Double sal) { this.sal = sal; } public Double getComm() { return this.comm; } public void setComm(Double comm) { this.comm = comm; }}
发表评论
最新留言
不错!
[***.144.177.141]2025年04月27日 00时26分38秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
我的图床~
2019-03-10
Thymeleaf sec:authorize 标签不生效
2019-03-11
js回车键登录
2019-03-11
Iterable与Iterator
2019-03-11
Python机器学习(五十二)SciPy 基础功能
2019-03-11
Python机器学习(六十五)Matplotlib 入门
2019-03-11
关于WebView当前地址问题的疑惑
2019-03-11
Python机器学习(九十二)Pandas 统计
2019-03-11
项目实战从0到1之hive(24)企业级数据仓库构建(六):数仓理论及数仓搭建
2019-03-11
SecSolar:为代码“捉虫”,让你能更专心写代码
2019-03-11
1965 - 2019 年最流行的编程语言变化
2019-03-11
链上钱包的博彩雷区
2019-03-11
GRUB2
2019-03-11
微信JS-SDK DEMO页面和示例代码
2019-03-11
XYNUOJ
2019-03-11
Chrome查找发请求的js之黑箱调试
2019-03-11
CMCC登录参数分析
2019-03-11
GridView的另外一种分页方式,可提高加载速度
2019-03-11