TBPurchaseDetail.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package jeecg.workflow.entity.bus;
  2. import javax.persistence.Column;
  3. import javax.persistence.Entity;
  4. import javax.persistence.FetchType;
  5. import javax.persistence.JoinColumn;
  6. import javax.persistence.ManyToOne;
  7. import javax.persistence.Table;
  8. import org.jeecgframework.core.annotation.JeecgEntityTitle;
  9. import org.jeecgframework.core.common.entity.IdEntity;
  10. /**
  11. * 采购单详细表
  12. */
  13. @Entity
  14. @Table(name = "t_b_purchasedetail")
  15. @JeecgEntityTitle(name="采购单详细表")
  16. public class TBPurchaseDetail extends IdEntity implements java.io.Serializable {
  17. private String purcname;
  18. private Short purcnum;
  19. private Double purcprice;
  20. private Double purctotalprice;
  21. private TBPurchase TBPurchase;
  22. @Column(name = "purcname", length = 100)
  23. public String getPurcname() {
  24. return this.purcname;
  25. }
  26. public void setPurcname(String purcname) {
  27. this.purcname = purcname;
  28. }
  29. @Column(name = "purcnum")
  30. public Short getPurcnum() {
  31. return this.purcnum;
  32. }
  33. public void setPurcnum(Short purcnum) {
  34. this.purcnum = purcnum;
  35. }
  36. @Column(name = "purcprice", precision = 12)
  37. public Double getPurcprice() {
  38. return this.purcprice;
  39. }
  40. public void setPurcprice(Double purcprice) {
  41. this.purcprice = purcprice;
  42. }
  43. @Column(name = "purctotalprice", precision = 12)
  44. public Double getPurctotalprice() {
  45. return this.purctotalprice;
  46. }
  47. public void setPurctotalprice(Double purctotalprice) {
  48. this.purctotalprice = purctotalprice;
  49. }
  50. @ManyToOne(fetch = FetchType.LAZY)
  51. @JoinColumn(name = "purchaseid")
  52. public TBPurchase getTBPurchase() {
  53. return TBPurchase;
  54. }
  55. public void setTBPurchase(TBPurchase tBPurchase) {
  56. this.TBPurchase = tBPurchase;
  57. }
  58. }