javabean和jdbc的使用实例系列(二.4)

第二步:给区域管理表area建立实体类

 

package com.sc.bean;

/*
 * 区域管理实体类
 */
public class area {
	
	//area表中的所有字段
	private int id;
	private int aNumber;
	private int aCap;
	private int aPeople;
	private String aPhone;
	private String Manager;
	
	//构造函数
	public area() {
	}

	//构造函数
	public area(int id, int aNumber, int aCap, int aPeople, String aPhone,
			String manager) {
		super();
		this.id = id;
		this.aNumber = aNumber;
		this.aCap = aCap;
		this.aPeople = aPeople;
		this.aPhone = aPhone;
		Manager = manager;
	}

	//get,set方法
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getaNumber() {
		return aNumber;
	}

	public void setaNumber(int aNumber) {
		this.aNumber = aNumber;
	}

	public int getaCap() {
		return aCap;
	}

	public void setaCap(int aCap) {
		this.aCap = aCap;
	}

	public int getaPeople() {
		return aPeople;
	}

	public void setaPeople(int aPeople) {
		this.aPeople = aPeople;
	}

	public String getaPhone() {
		return aPhone;
	}

	public void setaPhone(String aPhone) {
		this.aPhone = aPhone;
	}

	public String getManager() {
		return Manager;
	}

	public void setManager(String manager) {
		Manager = manager;
	}
	
}

你可能感兴趣的:(HomeWork)