Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 4th, 2020 194 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package hu.bois.demo.model;
  2.  
  3. import lombok.NonNull;
  4.  
  5. import javax.persistence.*;
  6. import java.util.Date;
  7. import java.util.List;
  8.  
  9. @Entity
  10. @Table(name="supply")
  11. public class Supply {
  12.     @Id @GeneratedValue
  13.     @Column(name="id")
  14.     private @NonNull Long id;
  15.     @Column(name="supplier_username")
  16.     private @NonNull String supplierName;
  17.     @Column(name="store_address")
  18.     private @NonNull String storeAddress;
  19.     @Column(name="supply_date")
  20.     private @NonNull Date supplyDate;
  21.  
  22.     @OneToMany(fetch = FetchType.LAZY)
  23.     @JoinColumn(name="supply_id")
  24.     private List<Package> packages;
  25.  
  26.  
  27.     public Supply(@NonNull String supplierName, @NonNull String storeAddress, @NonNull Date supplyDate) {
  28.         this.supplierName = supplierName;
  29.         this.storeAddress = storeAddress;
  30.         this.supplyDate = supplyDate;
  31.     }
  32.  
  33.     public Supply() {
  34.     }
  35.  
  36.     public Long getId() {
  37.         return id;
  38.     }
  39.  
  40.     public void setId(Long id) {
  41.         this.id = id;
  42.     }
  43.  
  44.     public String getSupplierName() {
  45.         return supplierName;
  46.     }
  47.  
  48.     public void setSupplierName(String supplier_name) {
  49.         this.supplierName = supplier_name;
  50.     }
  51.  
  52.     public String getStoreAddress() {
  53.         return storeAddress;
  54.     }
  55.  
  56.     public void setStoreAddress(String store_address) {
  57.         this.storeAddress = store_address;
  58.     }
  59.  
  60.     public Date getSupplyDate() {
  61.         return supplyDate;
  62.     }
  63.  
  64.     public void setSupplyDate(Date supply_date) {
  65.         this.supplyDate = supply_date;
  66.     }
  67.  
  68.  
  69. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top