Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package gringotts;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.Table;
- import java.math.BigDecimal;
- import java.time.LocalDateTime;
- @Entity
- @Table(name = "wizard_deposits")
- public class WizardDeposit extends BaseEntity {
- private String first_name;
- private String last_name;
- private String notes;
- private int age;
- private String magicWandCreator;
- private int magicWantSize;
- private String depositGroup;
- private LocalDateTime depositStartDate;
- private BigDecimal depositAmount;
- private double depositInterest;
- private BigDecimal depositCharge;
- private LocalDateTime depositExpirationDate;
- private boolean isDepositExpired;
- public WizardDeposit() {
- }
- @Column(name = "first_name", length = 50,insertable = false,updatable = false)
- public String getFirst_name() {
- return first_name;
- }
- public void setFirst_name(String first_name) {
- this.first_name = first_name;
- }
- @Column(name = "first_name", length = 60,nullable = false)
- public String getLast_name() {
- return last_name;
- }
- public void setLast_name(String last_name) {
- this.last_name = last_name;
- }
- @Column(name = "notes",length = 1000)
- public String getNotes() {
- return notes;
- }
- public void setNotes(String notes) {
- this.notes = notes;
- }
- @Column(name = "age", columnDefinition = "INT UNSIGNED", nullable = false)
- public int getAge() {
- return age;
- }
- public void setAge(int age) {
- this.age = age;
- }
- @Column(name = "magic_wand_creator", length = 100)
- public String getMagicWandCreator() {
- return magicWandCreator;
- }
- public void setMagicWandCreator(String magicWandCreator) {
- this.magicWandCreator = magicWandCreator;
- }
- @Column(name = "magic_wand_size")
- public int getMagicWantSize() {
- return magicWantSize;
- }
- public void setMagicWantSize(int magicWantSize) {
- this.magicWantSize = magicWantSize;
- }
- @Column(name = "deposit_group", length = 20)
- public String getDepositGroup() {
- return depositGroup;
- }
- public void setDepositGroup(String depositGroup) {
- this.depositGroup = depositGroup;
- }
- @Column(name = "deposit_start_date")
- public LocalDateTime getDepositStartDate() {
- return depositStartDate;
- }
- public void setDepositStartDate(LocalDateTime depositStartDate) {
- this.depositStartDate = depositStartDate;
- }
- @Column(name = "deposit_amount")
- public BigDecimal getDepositAmount() {
- return depositAmount;
- }
- public void setDepositAmount(BigDecimal depositAmount) {
- this.depositAmount = depositAmount;
- }
- @Column(name = "deposit_interest")
- public double getDepositInterest() {
- return depositInterest;
- }
- public void setDepositInterest(double depositInterest) {
- this.depositInterest = depositInterest;
- }
- @Column(name = "deposit_charge")
- public BigDecimal getDepositCharge() {
- return depositCharge;
- }
- public void setDepositCharge(BigDecimal depositCharge) {
- this.depositCharge = depositCharge;
- }
- @Column(name = "deposit_expiration_date")
- public LocalDateTime getDepositExpirationDate() {
- return depositExpirationDate;
- }
- public void setDepositExpirationDate(LocalDateTime depositExpirationDate) {
- this.depositExpirationDate = depositExpirationDate;
- }
- @Column(name = "is_deposit_expired")
- public boolean isDepositExpired() {
- return isDepositExpired;
- }
- public void setDepositExpired(boolean depositExpired) {
- isDepositExpired = depositExpired;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement