01: package org.julp.examples;
02:
03: public class Invoice extends org.julp.AbstractDomainObject implements
04: java.io.Serializable, Cloneable {
05:
06: public Invoice() {
07: }
08:
09: protected java.lang.Integer invoiceId;
10: protected java.lang.Integer customerId;
11: protected java.math.BigDecimal total;
12:
13: public java.lang.Integer geInvoicetId() {
14: return this .invoiceId;
15: }
16:
17: public void setInvoiceId(java.lang.Integer invoiceId) {
18: if (!isLoading()) {
19: /* DBColumn nullability: NoNulls - modify as needed */
20: if (customerId == null) {
21: throw new IllegalArgumentException(
22: "Missing field: customerId");
23: }
24: if (!invoiceId.equals(this .invoiceId)) {
25: this .modified = true;
26: }
27: }
28: this .invoiceId = invoiceId;
29: }
30:
31: public java.lang.Integer getCustomerId() {
32: return this .customerId;
33: }
34:
35: public void setCustomerId(java.lang.Integer customerId) {
36: if (!isLoading()) {
37: /* DBColumn nullability: NoNulls - modify as needed */
38: if (customerId == null) {
39: throw new IllegalArgumentException(
40: "Missing field: customerId");
41: }
42: if (!customerId.equals(this .customerId)) {
43: this .modified = true;
44: }
45: }
46: this .customerId = customerId;
47: }
48:
49: public java.math.BigDecimal getTotal() {
50: return this .total;
51: }
52:
53: public void setTotal(java.math.BigDecimal total) {
54: if (!isLoading()) {
55: /* DBColumn nullability: NoNulls - modify as needed */
56: if (total == null) {
57: throw new IllegalArgumentException(
58: "Missing field: total");
59: }
60: if (!total.equals(this .total)) {
61: this .modified = true;
62: }
63: }
64: this.total = total;
65: }
66:
67: }
|