abstracttaddressbook.java

来自「swnglu数据库连接统struts和hinernate」· Java 代码 · 共 93 行

JAVA
93
字号
package hibernatemodel;

/**
 * AbstractTAddressbook entity provides the base persistence definition of the
 * TAddressbook entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public abstract class AbstractTAddressbook implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String phone;
	private String address;
	private String email;
	private String province;

	// Constructors

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	/** default constructor */
	public AbstractTAddressbook() {
	}

	/** minimal constructor */
	public AbstractTAddressbook(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public AbstractTAddressbook(String name, String phone,
			String address,String email,String province) {

		this.name = name;
		this.phone = phone;
		this.address = address;
		this.email=email;
		this.province=province;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

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

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?