zoukankan      html  css  js  c++  java
  • 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;
    	}
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    	
    }
    

  • 相关阅读:
    第七次作业
    C语言总结(3)
    C语言总结(1)
    C语言总结(2)
    别人的经验
    代理模式(静态代理和动态代理)
    C++的反射
    Coretext实现图文混排及Gif图片播放
    IOS 中openGL使用教程1(openGL ES 入门篇 | 搭建openGL环境)
    IOS 中openGL使用教程2(openGL ES 入门篇 | 绘制一个多边形)
  • 原文地址:https://www.cnblogs.com/a1111/p/12816186.html
Copyright © 2011-2022 走看看