Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. package gringotts;
  2.  
  3. import javax.persistence.Column;
  4. import javax.persistence.Entity;
  5. import javax.persistence.Table;
  6. import java.math.BigDecimal;
  7. import java.time.LocalDateTime;
  8.  
  9. @Entity
  10. @Table(name = "wizard_deposits")
  11. public class WizardDeposit extends BaseEntity {
  12. private String first_name;
  13. private String last_name;
  14. private String notes;
  15. private int age;
  16. private String magicWandCreator;
  17. private int magicWantSize;
  18. private String depositGroup;
  19. private LocalDateTime depositStartDate;
  20. private BigDecimal depositAmount;
  21. private double depositInterest;
  22. private BigDecimal depositCharge;
  23. private LocalDateTime depositExpirationDate;
  24. private boolean isDepositExpired;
  25.  
  26. public WizardDeposit() {
  27. }
  28.  
  29. @Column(name = "first_name", length = 50,insertable = false,updatable = false)
  30. public String getFirst_name() {
  31. return first_name;
  32. }
  33.  
  34. public void setFirst_name(String first_name) {
  35. this.first_name = first_name;
  36. }
  37.  
  38. @Column(name = "first_name", length = 60,nullable = false)
  39. public String getLast_name() {
  40. return last_name;
  41. }
  42.  
  43. public void setLast_name(String last_name) {
  44. this.last_name = last_name;
  45. }
  46.  
  47. @Column(name = "notes",length = 1000)
  48. public String getNotes() {
  49. return notes;
  50. }
  51.  
  52. public void setNotes(String notes) {
  53. this.notes = notes;
  54. }
  55.  
  56. @Column(name = "age", columnDefinition = "INT UNSIGNED", nullable = false)
  57. public int getAge() {
  58. return age;
  59. }
  60.  
  61. public void setAge(int age) {
  62. this.age = age;
  63. }
  64.  
  65. @Column(name = "magic_wand_creator", length = 100)
  66. public String getMagicWandCreator() {
  67. return magicWandCreator;
  68. }
  69.  
  70. public void setMagicWandCreator(String magicWandCreator) {
  71. this.magicWandCreator = magicWandCreator;
  72. }
  73.  
  74. @Column(name = "magic_wand_size")
  75. public int getMagicWantSize() {
  76. return magicWantSize;
  77. }
  78.  
  79. public void setMagicWantSize(int magicWantSize) {
  80. this.magicWantSize = magicWantSize;
  81. }
  82.  
  83. @Column(name = "deposit_group", length = 20)
  84. public String getDepositGroup() {
  85. return depositGroup;
  86. }
  87.  
  88. public void setDepositGroup(String depositGroup) {
  89. this.depositGroup = depositGroup;
  90. }
  91.  
  92. @Column(name = "deposit_start_date")
  93. public LocalDateTime getDepositStartDate() {
  94. return depositStartDate;
  95. }
  96.  
  97. public void setDepositStartDate(LocalDateTime depositStartDate) {
  98. this.depositStartDate = depositStartDate;
  99. }
  100.  
  101. @Column(name = "deposit_amount")
  102. public BigDecimal getDepositAmount() {
  103. return depositAmount;
  104. }
  105.  
  106. public void setDepositAmount(BigDecimal depositAmount) {
  107. this.depositAmount = depositAmount;
  108. }
  109.  
  110. @Column(name = "deposit_interest")
  111. public double getDepositInterest() {
  112. return depositInterest;
  113. }
  114.  
  115. public void setDepositInterest(double depositInterest) {
  116. this.depositInterest = depositInterest;
  117. }
  118.  
  119. @Column(name = "deposit_charge")
  120. public BigDecimal getDepositCharge() {
  121. return depositCharge;
  122. }
  123.  
  124. public void setDepositCharge(BigDecimal depositCharge) {
  125. this.depositCharge = depositCharge;
  126. }
  127.  
  128. @Column(name = "deposit_expiration_date")
  129. public LocalDateTime getDepositExpirationDate() {
  130. return depositExpirationDate;
  131. }
  132.  
  133. public void setDepositExpirationDate(LocalDateTime depositExpirationDate) {
  134. this.depositExpirationDate = depositExpirationDate;
  135. }
  136.  
  137. @Column(name = "is_deposit_expired")
  138. public boolean isDepositExpired() {
  139. return isDepositExpired;
  140. }
  141.  
  142. public void setDepositExpired(boolean depositExpired) {
  143. isDepositExpired = depositExpired;
  144. }
  145. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement