zoukankan      html  css  js  c++  java
  • 最全三大框架整合(使用映射)——Dept.java

    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;
    	}
    
    	
    }

  • 相关阅读:
    es6箭头函数
    微信小程序入门
    浏览器常见错误代码
    nginx学习
    windows下mongodb安装与使用整理
    mongodb简单的增删改查
    github入门到上传本地项目
    Robomongo
    对象(面向对象、创建对象方式、Json)
    代码编辑器——Visual Studio Code
  • 原文地址:https://www.cnblogs.com/a1111/p/7459701.html
Copyright © 2011-2022 走看看