zoukankan      html  css  js  c++  java
  • Hibernate中使用Criteria查询及注解——(Dept.java)

    Dept.java:

         部门表的实体类:

    package cn.bdqn.hibernate_Criteria.entity;
    
    import java.util.HashSet;
    import java.util.Set;
    
    /**
     * 部门表的实体类
     * @author 1111
     *
     */
    public class Dept implements java.io.Serializable {
    
    	// Fields
    
    	private Integer deptno;
    	private String dname;
    	private String loc;
    	private Set emps = new HashSet(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 getEmps() {
    		return this.emps;
    	}
    
    	public void setEmps(Set emps) {
    		this.emps = emps;
    	}
    
    }


  • 相关阅读:
    Linux系统挂载数据盘
    python 路径和文件的遍历
    Markdown 语法手册
    Markdown 语法手册
    Markdown语法说明
    Alpha通道
    图像质量评价之数据库
    Python报错:ImportError: No module named src.data_layer
    history命令
    关于Segmentation fault (core dumped)
  • 原文地址:https://www.cnblogs.com/a1111/p/12816354.html
Copyright © 2011-2022 走看看