companyofferpositions.java
来自「Struts2 + Spring JPA Hibernate demo.」· Java 代码 · 共 236 行
JAVA
236 行
package com.vegeta.model.company.offer;import java.util.Date;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;import javax.persistence.Temporal;import javax.persistence.TemporalType;/** * CompanyOfferPositions entity. @author MyEclipse Persistence Tools */@Entity@Table(name = "company_offer_positions", schema = "public")public class CompanyOfferPositions implements java.io.Serializable { // Fields private Integer positionid; private Integer offerid; private Integer productid; private String productnr; private String deduction; private String productname; private Long quantity; private Double netamount; private Double pretax; private String taxtype; private String type; private String category; private String description; private String createdfrom; private Date createddate; private Date changeddate; private String changedfrom; // Constructors /** default constructor */ public CompanyOfferPositions() { } /** minimal constructor */ public CompanyOfferPositions(Integer positionid, Double netamount, Double pretax) { this.positionid = positionid; this.netamount = netamount; this.pretax = pretax; } /** full constructor */ public CompanyOfferPositions(Integer positionid, Integer offerid, Integer productid, String productnr, String deduction, String productname, Long quantity, Double netamount, Double pretax, String taxtype, String type, String category, String description, String createdfrom, Date createddate, Date changeddate, String changedfrom) { this.positionid = positionid; this.offerid = offerid; this.productid = productid; this.productnr = productnr; this.deduction = deduction; this.productname = productname; this.quantity = quantity; this.netamount = netamount; this.pretax = pretax; this.taxtype = taxtype; this.type = type; this.category = category; this.description = description; this.createdfrom = createdfrom; this.createddate = createddate; this.changeddate = changeddate; this.changedfrom = changedfrom; } // Property accessors @Id @Column(name = "positionid", unique = true, nullable = false) public Integer getPositionid() { return this.positionid; } public void setPositionid(Integer positionid) { this.positionid = positionid; } @Column(name = "offerid") public Integer getOfferid() { return this.offerid; } public void setOfferid(Integer offerid) { this.offerid = offerid; } @Column(name = "productid") public Integer getProductid() { return this.productid; } public void setProductid(Integer productid) { this.productid = productid; } @Column(name = "productnr") public String getProductnr() { return this.productnr; } public void setProductnr(String productnr) { this.productnr = productnr; } @Column(name = "deduction", length = 5) public String getDeduction() { return this.deduction; } public void setDeduction(String deduction) { this.deduction = deduction; } @Column(name = "productname") public String getProductname() { return this.productname; } public void setProductname(String productname) { this.productname = productname; } @Column(name = "quantity") public Long getQuantity() { return this.quantity; } public void setQuantity(Long quantity) { this.quantity = quantity; } @Column(name = "netamount", nullable = false, precision = 17, scale = 17) public Double getNetamount() { return this.netamount; } public void setNetamount(Double netamount) { this.netamount = netamount; } @Column(name = "pretax", nullable = false, precision = 17, scale = 17) public Double getPretax() { return this.pretax; } public void setPretax(Double pretax) { this.pretax = pretax; } @Column(name = "taxtype", length = 150) public String getTaxtype() { return this.taxtype; } public void setTaxtype(String taxtype) { this.taxtype = taxtype; } @Column(name = "type") public String getType() { return this.type; } public void setType(String type) { this.type = type; } @Column(name = "category") public String getCategory() { return this.category; } public void setCategory(String category) { this.category = category; } @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; } @Temporal(TemporalType.DATE) @Column(name = "changeddate", length = 13) public Date getChangeddate() { return this.changeddate; } public void setChangeddate(Date changeddate) { this.changeddate = changeddate; } @Column(name = "changedfrom", length = 150) public String getChangedfrom() { return this.changedfrom; } public void setChangedfrom(String changedfrom) { this.changedfrom = changedfrom; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?