• Hibernate中使用Criteria查询及注解——( EmpCondition)


    EmpCondition:

    动态查询的条件类:

    package cn.bdqn.hibernate_Criteria.entity;
    
    import java.util.Date;
    
    /**
     * Criteria动态查询的条件类
     * @author Administrator
     *
     */
    public class EmpCondition {
    	private String job;//职位
    	private Double sal;//工资
    	private Date hiredateStart; //入职日期的开始
    	private Date hiredateEnd; //入职日期的结束
    	public String getJob() {
    		return job;
    	}
    	public void setJob(String job) {
    		this.job = job;
    	}
    	public Double getSal() {
    		return sal;
    	}
    	public void setSal(Double sal) {
    		this.sal = sal;
    	}
    	public Date getHiredateStart() {
    		return hiredateStart;
    	}
    	public void setHiredateStart(Date hiredateStart) {
    		this.hiredateStart = hiredateStart;
    	}
    	public Date getHiredateEnd() {
    		return hiredateEnd;
    	}
    	public void setHiredateEnd(Date hiredateEnd) {
    		this.hiredateEnd = hiredateEnd;
    	}
    	public EmpCondition(String job, Double sal, Date hiredateStart,
    			Date hiredateEnd) {
    		super();
    		this.job = job;
    		this.sal = sal;
    		this.hiredateStart = hiredateStart;
    		this.hiredateEnd = hiredateEnd;
    	}
    	public EmpCondition() {
    		super();
    	}
    	
    
    }
    


  • 相关阅读:
    5.装饰器生成器迭代器
    python-进程&线程
    模块(二)
    MYSQL数据库操作(一)
    python-网络编程-socket编程
    python-异常处理
    python-面向对象进阶
    python-模块
    python_面向对象编程
    生成器 迭代器,装饰器 ,软件开发规范
  • 原文地址:https://www.cnblogs.com/a1111/p/12816341.html
Copyright © 2020-2023  润新知