1 package org.hibernate.test.immutable; 3 4 import java.io.Serializable ; 5 import java.util.ArrayList ; 6 import java.util.List ; 7 8 public class Contract implements Serializable { 9 10 private long id; 11 private String customerName; 12 private String type; 13 private List variations; 14 15 public Contract() { 16 super(); 17 } 18 19 public Contract(String customerName, String type) { 20 this.customerName = customerName; 21 this.type = type; 22 variations = new ArrayList (); 23 } 24 25 public String getCustomerName() { 26 return customerName; 27 } 28 29 public void setCustomerName(String 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 getType() { 42 return type; 43 } 44 45 public void setType(String type) { 46 this.type = type; 47 } 48 49 public List getVariations() { 50 return variations; 51 } 52 53 public void setVariations(List variations) { 54 this.variations = variations; 55 } 56 57 } 58 | Popular Tags |