Servlet使用适配器模式进行增删改查案例(Dept.java)

package org.entity;

/**
 * 
*    
* 项目名称:test_BaseDao   
* 类名称:Dept   
* 类描述:   部门表的实体类
* 创建人:Mu Xiongxiong  
* 创建时间:2017-9-13 上午8:44:37   
* 修改人:Mu Xiongxiong   
* 修改时间:2017-9-13 上午8:44:37   
* 修改备注:   
* @version    
*
 */
public class Dept {
       
	
	//属性  :和数据库中的表的字段一致;
	
	/**
	* @Fields deptno :该字段的意思:部门编号
	*/
	private int deptno;   
	/**
	* @Fields dname :该字段的意思:部门名称
	*/
	private String dname;
	/**
	* @Fields loc :该字段的意思:地址
	*/
	private String loc;
	
	
	  
	    /** 
	     * 构造函数 
	     * @discription 
	     * @author Mu Xiongxiong     
	     * @created 2017-9-13 上午8:45:24           
	     */ 
	public Dept() {
		// TODO Auto-generated constructor stub
	}

    
	  
	    /** 
	     * 构造函数 
	     * @discription 
	     * @author Mu Xiongxiong     
	     * @created 2017-9-13 上午8:45:27      
	     * @param deptno
	     * @param dname
	     * @param loc     
	     */ 
	public Dept(int deptno, String dname, String loc) {
		super();
		this.deptno = deptno;
		this.dname = dname;
		this.loc = loc;
	}


	public int getDeptno() {
		return deptno;
	}


	public void setDeptno(int deptno) {
		this.deptno = deptno;
	}


	public String getDname() {
		return dname;
	}


	public void setDname(String dname) {
		this.dname = dname;
	}


	public String getLoc() {
		return loc;
	}


	public void setLoc(String loc) {
		this.loc = loc;
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}

原文地址:https://www.cnblogs.com/a1111/p/12816186.html