📄 companyoffer.java
字号:
package com.vegeta.model.company.offer;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;/** * CompanyOffer entity. @author MyEclipse Persistence Tools */@Entity@Table(name = "company_offer", schema = "public")public class CompanyOffer implements java.io.Serializable { // Fields private Integer offerid; private Company company; private Integer opportunityid; private String offernr; private String name; private String status; private Integer offerversion; private Date offerdate; private Date validto; private Integer isrecieved; private String description; private String createdfrom; private Date createddate; private String changedfrom; private Date changeddate; // Constructors /** default constructor */ public CompanyOffer() { } /** minimal constructor */ public CompanyOffer(Integer offerid, String offernr) { this.offerid = offerid; this.offernr = offernr; } /** full constructor */ public CompanyOffer(Integer offerid, Company company, Integer opportunityid, String offernr, String name, String status, Integer offerversion, Date offerdate, Date validto, Integer isrecieved, String description, String createdfrom, Date createddate, String changedfrom, Date changeddate) { this.offerid = offerid; this.company = company; this.opportunityid = opportunityid; this.offernr = offernr; this.name = name; this.status = status; this.offerversion = offerversion; this.offerdate = offerdate; this.validto = validto; this.isrecieved = isrecieved; this.description = description; this.createdfrom = createdfrom; this.createddate = createddate; this.changedfrom = changedfrom; this.changeddate = changeddate; } // Property accessors @Id @Column(name = "offerid", unique = true, nullable = false) public Integer getOfferid() { return this.offerid; } public void setOfferid(Integer offerid) { this.offerid = offerid; } @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "companyid") public Company getCompany() { return this.company; } public void setCompany(Company company) { this.company = company; } @Column(name = "opportunityid") public Integer getOpportunityid() { return this.opportunityid; } public void setOpportunityid(Integer opportunityid) { this.opportunityid = opportunityid; } @Column(name = "offernr", nullable = false) public String getOffernr() { return this.offernr; } public void setOffernr(String offernr) { this.offernr = offernr; } @Column(name = "name") public String getName() { return this.name; } public void setName(String name) { this.name = name; } @Column(name = "status", length = 100) public String getStatus() { return this.status; } public void setStatus(String status) { this.status = status; } @Column(name = "offerversion") public Integer getOfferversion() { return this.offerversion; } public void setOfferversion(Integer offerversion) { this.offerversion = offerversion; } @Temporal(TemporalType.DATE) @Column(name = "offerdate", length = 13) public Date getOfferdate() { return this.offerdate; } public void setOfferdate(Date offerdate) { this.offerdate = offerdate; } @Temporal(TemporalType.DATE) @Column(name = "validto", length = 13) public Date getValidto() { return this.validto; } public void setValidto(Date validto) { this.validto = validto; } @Column(name = "isrecieved") public Integer getIsrecieved() { return this.isrecieved; } public void setIsrecieved(Integer isrecieved) { this.isrecieved = isrecieved; } @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 + -