KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > immutable > Contract


1 //$Id: Contract.java,v 1.1 2005/06/19 17:22:01 oneovthafew Exp $
2
package org.hibernate.test.immutable;
3
4 import java.io.Serializable JavaDoc;
5 import java.util.ArrayList JavaDoc;
6 import java.util.List JavaDoc;
7
8 public class Contract implements Serializable JavaDoc {
9     
10     private long id;
11     private String JavaDoc customerName;
12     private String JavaDoc type;
13     private List JavaDoc variations;
14
15     public Contract() {
16         super();
17     }
18
19     public Contract(String JavaDoc customerName, String JavaDoc type) {
20         this.customerName = customerName;
21         this.type = type;
22         variations = new ArrayList JavaDoc();
23     }
24
25     public String JavaDoc getCustomerName() {
26         return customerName;
27     }
28
29     public void setCustomerName(String JavaDoc customerName) {
30         this.customerName = customerName;
31     }
32
33     public long getId() {
34         return id;
35     }
36
37     public void setId(long id) {
38         this.id = id;
39     }
40
41     public String JavaDoc getType() {
42         return type;
43     }
44
45     public void setType(String JavaDoc type) {
46         this.type = type;
47     }
48
49     public List JavaDoc getVariations() {
50         return variations;
51     }
52
53     public void setVariations(List JavaDoc variations) {
54         this.variations = variations;
55     }
56
57 }
58
Popular Tags