public class PaymentMasterPK implements Serializable{
private static final long serialVersionUID = 1L;
private String pmtCode;
private String pmtType;
public PaymentMasterPK(){
}
public PaymentMasterPK(String pmtCode, String pmtType){
if(StringUtils.isEmpty(pmtType)) {
pmtType = new String("");
}
this.pmtCode = pmtCode;
this.pmtType = pmtType;
}
// Getter, Setter
@Override
public boolean equals(Object obj) {
if(this == obj) {
return true;
}
if(obj == null || this.getClass() != obj.getClass()) {
return false;
}
PaymentMasterPK paymentMasterPK = (PaymentMasterPK)obj;
if(this.pmtCode.equals(paymentMasterPK.pmtCode) && this.pmtType.equals(paymentMasterPK.pmtType) ) {
return true;
}
return false;
}
@Override
public int hashCode() {
return Objects.hash(pmtCode, pmtType);
}
}