ProjectRecode.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. package com.uas.service.donate.model;
  2. import javax.persistence.*;
  3. @Entity
  4. @Table(name="donate$projectrecode")
  5. public class ProjectRecode {
  6. private static final long serialVersionUID = 1L;
  7. @Id
  8. @GeneratedValue(strategy= GenerationType.IDENTITY)
  9. @Column(name="pr_id")
  10. private Long id;
  11. /**
  12. * 项目编号
  13. */
  14. @Column(name="pr_pro_id")
  15. private Long proId;
  16. /**
  17. * 项目
  18. */
  19. @OneToOne(cascade = { CascadeType.REFRESH, CascadeType.MERGE })
  20. @JoinColumn(name = "pr_pro_id", insertable = false, updatable = false)
  21. private Project project;
  22. /**
  23. * 优软云账号
  24. */
  25. @Column(name="pr_uuid")
  26. private Long uuid;
  27. /**
  28. * 捐款额
  29. * @return
  30. */
  31. @Column(name = "pr_amount")
  32. private Double amount;
  33. /**
  34. * 祝福语
  35. * @return
  36. */
  37. @Column(name = "pr_bless")
  38. private String bless;
  39. public Long getId() {
  40. return id;
  41. }
  42. public void setId(Long id) {
  43. this.id = id;
  44. }
  45. public Long getProId() {
  46. return proId;
  47. }
  48. public void setProId(Long proId) {
  49. this.proId = proId;
  50. }
  51. public Project getProject() {
  52. return project;
  53. }
  54. public void setProject(Project project) {
  55. this.project = project;
  56. }
  57. public Long getUuid() {
  58. return uuid;
  59. }
  60. public void setUuid(Long uuid) {
  61. this.uuid = uuid;
  62. }
  63. public Double getAmount() {
  64. return amount;
  65. }
  66. public void setAmount(Double amount) {
  67. this.amount = amount;
  68. }
  69. public String getBless() {
  70. return bless;
  71. }
  72. public void setBless(String bless) {
  73. this.bless = bless;
  74. }
  75. }