1 17 18 package org.sape.carbon.services.sqldataloader.test; 19 20 import java.math.BigDecimal ; 21 22 32 public class TestTwoColumnBean { 33 public TestTwoColumnBean() { 34 } 35 36 private BigDecimal key; 37 private String value; 38 39 public BigDecimal getKey() { 40 return this.key; 41 } 42 43 public void setKey(BigDecimal key) { 44 this.key = key; 45 } 46 47 public String getValue() { 48 return this.value; 49 } 50 51 public void setValue(String value) { 52 this.value = value; 53 } 54 55 public boolean equals(Object object) { 56 TestTwoColumnBean twoColumnBean = (TestTwoColumnBean) object; 57 if ((this.key.equals(twoColumnBean.getKey())) && 58 (this.value.equals(twoColumnBean.getValue()))) { 59 return true; 60 } else { 61 return false; 62 } 63 } 64 65 public int hashCode() { 66 return this.key.hashCode(); 67 } 68 } | Popular Tags |