1 5 package org.hibernate.test.legacy; 6 7 import java.io.Serializable ; 8 9 13 public class CompositeIdId implements Serializable { 14 15 String system; 16 String id; 17 String name; 18 CompositeElement composite; 19 20 21 public String getId() { 22 return id; 23 } 24 public void setId(String id) { 25 this.id = id; 26 } 27 public String getSystem() { 28 return system; 29 } 30 public void setSystem(String system) { 31 this.system = system; 32 } 33 public String getName() { 34 return name; 35 } 36 public void setName(String name) { 37 this.name = name; 38 } 39 40 43 public boolean equals(Object obj) { 44 CompositeIdId o = (CompositeIdId) obj; 46 if(o==null) return false; 47 return o.getSystem().equals(getSystem()) && o.getId().equals(getId()); 48 } 49 public CompositeElement getComposite() { 50 return composite; 51 } 52 public void setComposite(CompositeElement composite) { 53 this.composite = composite; 54 } 55 } 56 | Popular Tags |