1 package invoice; 2 3 6 public class ProductUnits { 7 private Product product; 8 private Invoice invoice; 9 private int quantity; 10 private long identifier; 11 12 public ProductUnits() { 13 } 14 15 public ProductUnits(Product product, 16 Invoice invoice, 17 int quantity, 18 long identifier) { 19 this.product = product; 20 this.invoice = invoice; 21 this.quantity = quantity; 22 this.identifier = identifier; 23 } 24 25 public String toString() { 26 return "identifier:" + identifier + " / quantity:" + quantity 27 + " / product: (" + product + ")"; 28 } 29 30 public Product getProduct() { 31 return product; 32 } 33 34 public void setProduct(Product product) { 35 this.product = product; 36 } 37 38 public int getQuantity() { 39 return quantity; 40 } 41 42 public void setQuantity(int quantity) { 43 this.quantity = quantity; 44 } 45 46 public long getIdentifier() { 47 return identifier; 48 } 49 50 public void setIdentifier(long identifier) { 51 this.identifier = identifier; 52 } 53 54 public Invoice getInvoice() { 55 return invoice; 56 } 57 58 public void setInvoice(Invoice invoice) { 59 this.invoice = invoice; 60 } 61 } 62 | Popular Tags |