1 16 package net.sf.dozer.util.mapping.vo; 17 18 23 public class LoopObjectParent extends BaseTestObject { 24 private String attribute; 25 private LoopObjectChild child; 26 27 public String getAttribute() { 28 return attribute; 29 } 30 31 public void setAttribute(String attribute) { 32 this.attribute = attribute; 33 } 34 35 public LoopObjectChild getChild() { 36 return child; 37 } 38 39 public void setChild(LoopObjectChild childObject) { 40 this.child = childObject; 41 } 42 43 public int hashCode() { 44 return System.identityHashCode(this); 45 } 46 47 public String toString() { 48 return this.getClass().getName() + "@" + Integer.toHexString(hashCode()); 49 } 50 51 public boolean equals(Object obj) { 52 return hashCode() == obj.hashCode(); 53 } 54 } 55 | Popular Tags |