01: package invoice;
02:
03: /**
04: * @author S.Chassande-Barrioz
05: */
06: public class ProductUnits {
07: private Product product;
08: private Invoice invoice;
09: private int quantity;
10: private long identifier;
11:
12: public ProductUnits() {
13: }
14:
15: public ProductUnits(Product product, Invoice invoice, int quantity,
16: long identifier) {
17: this .product = product;
18: this .invoice = invoice;
19: this .quantity = quantity;
20: this .identifier = identifier;
21: }
22:
23: public String toString() {
24: return "identifier:" + identifier + " / quantity:" + quantity
25: + " / product: (" + product + ")";
26: }
27:
28: public Product getProduct() {
29: return product;
30: }
31:
32: public void setProduct(Product product) {
33: this .product = product;
34: }
35:
36: public int getQuantity() {
37: return quantity;
38: }
39:
40: public void setQuantity(int quantity) {
41: this .quantity = quantity;
42: }
43:
44: public long getIdentifier() {
45: return identifier;
46: }
47:
48: public void setIdentifier(long identifier) {
49: this .identifier = identifier;
50: }
51:
52: public Invoice getInvoice() {
53: return invoice;
54: }
55:
56: public void setInvoice(Invoice invoice) {
57: this.invoice = invoice;
58: }
59: }
|