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

📄 companycontacts.java

📁 Struts2 + Spring JPA Hibernate demo.
💻 JAVA
字号:
package com.vegeta.model.company.contact;import java.util.Date;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.FetchType;import javax.persistence.Id;import javax.persistence.JoinColumn;import javax.persistence.ManyToOne;import javax.persistence.Table;import javax.persistence.Temporal;import javax.persistence.TemporalType;import com.vegeta.model.company.Company;/** * CompanyContacts entity. @author MyEclipse Persistence Tools */@Entity@Table(name = "company_contacts", schema = "public")public class CompanyContacts implements java.io.Serializable {	// Fields	private Integer contactid;	private Company company;	private Integer maincontact;	private Integer pos;	private String gender;	private String surname;	private String name;	private String mittelname;	private String position;	private Date birddate;	private String phone;	private String fax;	private String mobile;	private String email;	private String description;	private String createdfrom;	private Date createddate;	private String changedfrom;	private Date changeddate;	// Constructors	/** default constructor */	public CompanyContacts() {	}	/** minimal constructor */	public CompanyContacts(Integer contactid) {		this.contactid = contactid;	}	/** full constructor */	public CompanyContacts(Integer contactid, Company company,			Integer maincontact, Integer pos, String gender, String surname,			String name, String mittelname, String position, Date birddate,			String phone, String fax, String mobile, String email,			String description, String createdfrom, Date createddate,			String changedfrom, Date changeddate) {		this.contactid = contactid;		this.company = company;		this.maincontact = maincontact;		this.pos = pos;		this.gender = gender;		this.surname = surname;		this.name = name;		this.mittelname = mittelname;		this.position = position;		this.birddate = birddate;		this.phone = phone;		this.fax = fax;		this.mobile = mobile;		this.email = email;		this.description = description;		this.createdfrom = createdfrom;		this.createddate = createddate;		this.changedfrom = changedfrom;		this.changeddate = changeddate;	}	// Property accessors	@Id	@Column(name = "contactid", unique = true, nullable = false)	public Integer getContactid() {		return this.contactid;	}	public void setContactid(Integer contactid) {		this.contactid = contactid;	}	@ManyToOne(fetch = FetchType.LAZY)	@JoinColumn(name = "companyid")	public Company getCompany() {		return this.company;	}	public void setCompany(Company company) {		this.company = company;	}	@Column(name = "maincontact")	public Integer getMaincontact() {		return this.maincontact;	}	public void setMaincontact(Integer maincontact) {		this.maincontact = maincontact;	}	@Column(name = "pos")	public Integer getPos() {		return this.pos;	}	public void setPos(Integer pos) {		this.pos = pos;	}	@Column(name = "gender", length = 20)	public String getGender() {		return this.gender;	}	public void setGender(String gender) {		this.gender = gender;	}	@Column(name = "surname", length = 150)	public String getSurname() {		return this.surname;	}	public void setSurname(String surname) {		this.surname = surname;	}	@Column(name = "name", length = 150)	public String getName() {		return this.name;	}	public void setName(String name) {		this.name = name;	}	@Column(name = "mittelname", length = 150)	public String getMittelname() {		return this.mittelname;	}	public void setMittelname(String mittelname) {		this.mittelname = mittelname;	}	@Column(name = "position", length = 150)	public String getPosition() {		return this.position;	}	public void setPosition(String position) {		this.position = position;	}	@Temporal(TemporalType.DATE)	@Column(name = "birddate", length = 13)	public Date getBirddate() {		return this.birddate;	}	public void setBirddate(Date birddate) {		this.birddate = birddate;	}	@Column(name = "phone", length = 30)	public String getPhone() {		return this.phone;	}	public void setPhone(String phone) {		this.phone = phone;	}	@Column(name = "fax", length = 30)	public String getFax() {		return this.fax;	}	public void setFax(String fax) {		this.fax = fax;	}	@Column(name = "mobile", length = 30)	public String getMobile() {		return this.mobile;	}	public void setMobile(String mobile) {		this.mobile = mobile;	}	@Column(name = "email", length = 50)	public String getEmail() {		return this.email;	}	public void setEmail(String email) {		this.email = email;	}	@Column(name = "description")	public String getDescription() {		return this.description;	}	public void setDescription(String description) {		this.description = description;	}	@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 + -