1 package org.hibernate.test.legacy; 3 4 import java.io.Serializable ; 5 import java.math.BigDecimal ; 6 import java.util.Collection ; 7 import java.util.Date ; 8 import java.util.HashSet ; 9 import java.util.Set ; 10 11 public class Master implements Serializable , Named { 12 private Master otherMaster; 13 private Set details = new HashSet (); 14 private Set moreDetails = new HashSet (); 15 private Set incoming = new HashSet (); 16 private Set outgoing = new HashSet (); 17 private String name="master"; 18 private Date stamp; 19 private int version; 20 private BigDecimal bigDecimal = new BigDecimal ("1234.123"); 21 private int x; 22 private Collection allDetails; 23 24 public int getX() { 25 return x; 26 } 27 public void setX(int x) { 28 this.x = x; 29 } 30 31 public Set getDetails() { 32 return details; 33 } 34 35 private void setDetails(Set details) { 36 this.details = details; 37 } 38 39 public void addDetail(Detail d) { 40 details.add(d); 41 } 42 43 public void removeDetail(Detail d) { 44 details.remove(d); 45 } 46 47 public void addIncoming(Master m) { 48 incoming.add(m); 49 } 50 51 public void removeIncoming(Master m) { 52 incoming.remove(m); 53 } 54 55 public void addOutgoing(Master m) { 56 outgoing.add(m); 57 } 58 59 public void removeOutgoing(Master m) { 60 outgoing.remove(m); 61 } 62 63 public Set getIncoming() { 64 return incoming; 65 } 66 67 public void setIncoming(Set incoming) { 68 this.incoming = incoming; 69 } 70 71 public Set getOutgoing() { 72 return outgoing; 73 } 74 75 public void setOutgoing(Set outgoing) { 76 this.outgoing = outgoing; 77 } 78 79 public Set getMoreDetails() { 80 return moreDetails; 81 } 82 83 public void setMoreDetails(Set moreDetails) { 84 this.moreDetails = moreDetails; 85 } 86 87 public String getName() { 88 return name; 89 } 90 91 public void setName(String name) { 92 this.name = name; 93 } 94 95 public Date getStamp() { 96 return stamp; 97 } 98 99 public void setStamp(Date stamp) { 100 this.stamp = stamp; 101 } 102 103 public BigDecimal getBigDecimal() { 104 return bigDecimal; 105 } 106 107 public void setBigDecimal(BigDecimal bigDecimal) { 108 this.bigDecimal = bigDecimal; 109 } 110 111 114 public Master getOtherMaster() { 115 return otherMaster; 116 } 117 118 121 public void setOtherMaster(Master master) { 122 otherMaster = master; 123 } 124 125 128 public Collection getAllDetails() { 129 return allDetails; 130 } 131 134 public void setAllDetails(Collection allDetails) { 135 this.allDetails = allDetails; 136 } 137 } 138 139 140 141 142 143 144 | Popular Tags |