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

📄 companyopportunity.java

📁 Struts2 + Spring JPA Hibernate demo.
💻 JAVA
字号:
package com.vegeta.model.company.opportunity;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;/** * CompanyOpportunity entity. @author MyEclipse Persistence Tools */@Entity@Table(name = "company_opportunity", schema = "public")public class CompanyOpportunity implements java.io.Serializable {	// Fields	private Integer opportunityid;	private Company company;	private String name;	private String salestage;	private String probability;	private Double opportunityvalue;	private String isclose;	private Date closedate;	private String businesstype;	private String evaluationstatus;	private Date evaluetiondate;	private String budgetstatus;	private Date budgetdate;	private Date salestagedate;	private String opportunitystatus;	private Date opportunitystatusdate;	private String description;	private String createdfrom;	private Date createddate;	private String changedfrom;	private Date changeddate;	// Constructors	/** default constructor */	public CompanyOpportunity() {	}	/** minimal constructor */	public CompanyOpportunity(Integer opportunityid) {		this.opportunityid = opportunityid;	}	/** full constructor */	public CompanyOpportunity(Integer opportunityid, Company company,			String name, String salestage, String probability,			Double opportunityvalue, String isclose, Date closedate,			String businesstype, String evaluationstatus, Date evaluetiondate,			String budgetstatus, Date budgetdate, Date salestagedate,			String opportunitystatus, Date opportunitystatusdate,			String description, String createdfrom, Date createddate,			String changedfrom, Date changeddate) {		this.opportunityid = opportunityid;		this.company = company;		this.name = name;		this.salestage = salestage;		this.probability = probability;		this.opportunityvalue = opportunityvalue;		this.isclose = isclose;		this.closedate = closedate;		this.businesstype = businesstype;		this.evaluationstatus = evaluationstatus;		this.evaluetiondate = evaluetiondate;		this.budgetstatus = budgetstatus;		this.budgetdate = budgetdate;		this.salestagedate = salestagedate;		this.opportunitystatus = opportunitystatus;		this.opportunitystatusdate = opportunitystatusdate;		this.description = description;		this.createdfrom = createdfrom;		this.createddate = createddate;		this.changedfrom = changedfrom;		this.changeddate = changeddate;	}	// Property accessors	@Id	@Column(name = "opportunityid", unique = true, nullable = false)	public Integer getOpportunityid() {		return this.opportunityid;	}	public void setOpportunityid(Integer opportunityid) {		this.opportunityid = opportunityid;	}	@ManyToOne(fetch = FetchType.LAZY)	@JoinColumn(name = "companyid")	public Company getCompany() {		return this.company;	}	public void setCompany(Company company) {		this.company = company;	}	@Column(name = "name")	public String getName() {		return this.name;	}	public void setName(String name) {		this.name = name;	}	@Column(name = "salestage", length = 100)	public String getSalestage() {		return this.salestage;	}	public void setSalestage(String salestage) {		this.salestage = salestage;	}	@Column(name = "probability", length = 100)	public String getProbability() {		return this.probability;	}	public void setProbability(String probability) {		this.probability = probability;	}	@Column(name = "opportunityvalue", precision = 17, scale = 17)	public Double getOpportunityvalue() {		return this.opportunityvalue;	}	public void setOpportunityvalue(Double opportunityvalue) {		this.opportunityvalue = opportunityvalue;	}	@Column(name = "isclose")	public String getIsclose() {		return this.isclose;	}	public void setIsclose(String isclose) {		this.isclose = isclose;	}	@Temporal(TemporalType.DATE)	@Column(name = "closedate", length = 13)	public Date getClosedate() {		return this.closedate;	}	public void setClosedate(Date closedate) {		this.closedate = closedate;	}	@Column(name = "businesstype", length = 150)	public String getBusinesstype() {		return this.businesstype;	}	public void setBusinesstype(String businesstype) {		this.businesstype = businesstype;	}	@Column(name = "evaluationstatus", length = 150)	public String getEvaluationstatus() {		return this.evaluationstatus;	}	public void setEvaluationstatus(String evaluationstatus) {		this.evaluationstatus = evaluationstatus;	}	@Temporal(TemporalType.DATE)	@Column(name = "evaluetiondate", length = 13)	public Date getEvaluetiondate() {		return this.evaluetiondate;	}	public void setEvaluetiondate(Date evaluetiondate) {		this.evaluetiondate = evaluetiondate;	}	@Column(name = "budgetstatus", length = 150)	public String getBudgetstatus() {		return this.budgetstatus;	}	public void setBudgetstatus(String budgetstatus) {		this.budgetstatus = budgetstatus;	}	@Temporal(TemporalType.DATE)	@Column(name = "budgetdate", length = 13)	public Date getBudgetdate() {		return this.budgetdate;	}	public void setBudgetdate(Date budgetdate) {		this.budgetdate = budgetdate;	}	@Temporal(TemporalType.DATE)	@Column(name = "salestagedate", length = 13)	public Date getSalestagedate() {		return this.salestagedate;	}	public void setSalestagedate(Date salestagedate) {		this.salestagedate = salestagedate;	}	@Column(name = "opportunitystatus", length = 150)	public String getOpportunitystatus() {		return this.opportunitystatus;	}	public void setOpportunitystatus(String opportunitystatus) {		this.opportunitystatus = opportunitystatus;	}	@Temporal(TemporalType.DATE)	@Column(name = "opportunitystatusdate", length = 13)	public Date getOpportunitystatusdate() {		return this.opportunitystatusdate;	}	public void setOpportunitystatusdate(Date opportunitystatusdate) {		this.opportunitystatusdate = opportunitystatusdate;	}	@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 + -