⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 companyaddress.java

📁 Struts2 + Spring JPA Hibernate demo.
💻 JAVA
字号:
package com.vegeta.model.company;import java.util.Date;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.FetchType;import javax.persistence.GeneratedValue;import javax.persistence.Id;import javax.persistence.JoinColumn;import javax.persistence.ManyToOne;import javax.persistence.Table;import javax.persistence.Temporal;import javax.persistence.TemporalType;/** * CompanyAddress entity. @author MyEclipse Persistence Tools */@Entity@Table(name = "company_address", schema = "public")public class CompanyAddress implements java.io.Serializable {	// Fields	private Integer addressid;	private Company company;	private String addresstype;	private String street;	private String zip;	private String location;	private String pbox;	private String country;	private String createdfrom;	private Date createddate;	private String changedfrom;	private Date changeddate;	// Constructors	/** default constructor */	public CompanyAddress() {	}	/** minimal constructor */	public CompanyAddress(Integer addressid) {		this.addressid = addressid;	}	/** full constructor */	public CompanyAddress(Integer addressid, Company company, String addresstype, String street, String zip, String location, String pbox,			String country, String createdfrom, Date createddate, String changedfrom, Date changeddate) {		this.addressid = addressid;		this.company = company;		this.addresstype = addresstype;		this.street = street;		this.zip = zip;		this.location = location;		this.pbox = pbox;		this.country = country;		this.createdfrom = createdfrom;		this.createddate = createddate;		this.changedfrom = changedfrom;		this.changeddate = changeddate;	}	// Property accessors	@Id	@GeneratedValue	@Column(name = "addressid", unique = true, nullable = false)	public Integer getAddressid() {		return this.addressid;	}	public void setAddressid(Integer addressid) {		this.addressid = addressid;	}	@ManyToOne(fetch = FetchType.LAZY)	@JoinColumn(name = "companyid")	public Company getCompany() {		return this.company;	}	public void setCompany(Company company) {		this.company = company;	}	@Column(name = "addresstype", length = 150)	public String getAddresstype() {		return this.addresstype;	}	public void setAddresstype(String addresstype) {		this.addresstype = addresstype;	}	@Column(name = "street", length = 50)	public String getStreet() {		return this.street;	}	public void setStreet(String street) {		this.street = street;	}	@Column(name = "zip", length = 10)	public String getZip() {		return this.zip;	}	public void setZip(String zip) {		this.zip = zip;	}	@Column(name = "location", length = 50)	public String getLocation() {		return this.location;	}	public void setLocation(String location) {		this.location = location;	}	@Column(name = "pbox", length = 150)	public String getPbox() {		return this.pbox;	}	public void setPbox(String pbox) {		this.pbox = pbox;	}	@Column(name = "country", length = 150)	public String getCountry() {		return this.country;	}	public void setCountry(String country) {		this.country = country;	}	@Column(name = "createdfrom", length = 150)	public String getCreatedfrom() {		return this.createdfrom;	}	public void setCreatedfrom(String createdfrom) {		this.createdfrom = createdfrom;	}	@Temporal(TemporalType.DATE)	@Column(name = "createddate", length = 13)	public Date getCreateddate() {		return this.createddate;	}	public void setCreateddate(Date createddate) {		this.createddate = createddate;	}	@Column(name = "changedfrom", length = 150)	public String getChangedfrom() {		return this.changedfrom;	}	public void setChangedfrom(String changedfrom) {		this.changedfrom = changedfrom;	}	@Temporal(TemporalType.DATE)	@Column(name = "changeddate", length = 13)	public Date getChangeddate() {		return this.changeddate;	}	public void setChangeddate(Date changeddate) {		this.changeddate = changeddate;	}}

⌨️ 快捷键说明

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