如果用hibernate映射pojo类。会生成这样的是个类,
package com.cn.fastunit.pojo;import java.util.Date;/**
 * AbstractOdmStockTb generated by MyEclipse Persistence Tools
 */public abstract class AbstractOdmStockTb implements java.io.Serializable { // Fields private OdmStockTbId id; private String locationno; private String unit; private Long onhandquantity; private Long frozenquantity; private Double costprice; private Double onhandamount; private Long criterquantity; private Long minquantity; private Long onorderquantity; private String firstorderedflag; private String deleteflag; private Long updatecount; private String createuser; private Date createdate; private String updateuser; private Date updatetime; // Constructors /** default constructor */
public AbstractOdmStockTb() {
} /** minimal constructor */
public AbstractOdmStockTb(OdmStockTbId id) {
this.id = id;
} /** full constructor */
public AbstractOdmStockTb(OdmStockTbId id, String locationno, String unit,
Long onhandquantity, Long frozenquantity, Double costprice,
Double onhandamount, Long criterquantity, Long minquantity,
Long onorderquantity, String firstorderedflag, String deleteflag,
Long updatecount, String createuser, Date createdate,
String updateuser, Date updatetime) {
this.id = id;
this.locationno = locationno;
this.unit = unit;
this.onhandquantity = onhandquantity;
this.frozenquantity = frozenquantity;
this.costprice = costprice;
this.onhandamount = onhandamount;
this.criterquantity = criterquantity;
this.minquantity = minquantity;
this.onorderquantity = onorderquantity;
this.firstorderedflag = firstorderedflag;
this.deleteflag = deleteflag;
this.updatecount = updatecount;
this.createuser = createuser;
this.createdate = createdate;
this.updateuser = updateuser;
this.updatetime = updatetime;
} // Property accessors public OdmStockTbId getId() {
return this.id;
} public void setId(OdmStockTbId id) {
this.id = id;
} public String getLocationno() {
return this.locationno;
} public void setLocationno(String locationno) {
this.locationno = locationno;
} public String getUnit() {
return this.unit;
} public void setUnit(String unit) {
this.unit = unit;
} public Long getOnhandquantity() {
return this.onhandquantity;
} public void setOnhandquantity(Long onhandquantity) {
this.onhandquantity = onhandquantity;
} public Long getFrozenquantity() {
return this.frozenquantity;
} public void setFrozenquantity(Long frozenquantity) {
this.frozenquantity = frozenquantity;
} public Double getCostprice() {
return this.costprice;
} public void setCostprice(Double costprice) {
this.costprice = costprice;
} public Double getOnhandamount() {
return this.onhandamount;
} public void setOnhandamount(Double onhandamount) {
this.onhandamount = onhandamount;
} public Long getCriterquantity() {
return this.criterquantity;
} public void setCriterquantity(Long criterquantity) {
this.criterquantity = criterquantity;
} public Long getMinquantity() {
return this.minquantity;
} public void setMinquantity(Long minquantity) {
this.minquantity = minquantity;
} public Long getOnorderquantity() {
return this.onorderquantity;
} public void setOnorderquantity(Long onorderquantity) {
this.onorderquantity = onorderquantity;
} public String getFirstorderedflag() {
return this.firstorderedflag;
} public void setFirstorderedflag(String firstorderedflag) {
this.firstorderedflag = firstorderedflag;
} public String getDeleteflag() {
return this.deleteflag;
} public void setDeleteflag(String deleteflag) {
this.deleteflag = deleteflag;
} public Long getUpdatecount() {
return this.updatecount;
} public void setUpdatecount(Long updatecount) {
this.updatecount = updatecount;
} public String getCreateuser() {
return this.createuser;
} public void setCreateuser(String createuser) {
this.createuser = createuser;
} public Date getCreatedate() {
return this.createdate;
} public void setCreatedate(Date createdate) {
this.createdate = createdate;
} public String getUpdateuser() {
return this.updateuser;
} public void setUpdateuser(String updateuser) {
this.updateuser = updateuser;
} public Date getUpdatetime() {
return this.updatetime;
} public void setUpdatetime(Date updatetime) {
this.updatetime = updatetime;
}}-----------------------------------------------------------------------------