1 16 package net.sf.dozer.util.mapping.vo; 17 18 19 public class TestReferenceFoo extends BaseTestObject { 20 private String a; 21 private String b; 22 private String c; 23 24 public boolean equals(Object obj) { 25 TestReferenceFoo foo = (TestReferenceFoo) obj; 26 if (foo.getA().equals(this.a)) { 27 return true; 28 } else { 29 return false; 30 } 31 } 32 33 public int hashCode (){ 34 return 'x'; 35 } 36 public String getA() { 37 return a; 38 } 39 40 public void setA(String a) { 41 this.a = a; 42 } 43 44 public String getB() { 45 return b; 46 } 47 48 public void setB(String b) { 49 this.b = b; 50 } 51 52 public String getC() { 53 return c; 54 } 55 56 public void setC(String c) { 57 this.c = c; 58 } 59 } 60 | Popular Tags |