You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.5 KiB
Java
72 lines
1.5 KiB
Java
package com.mfsys.uco.model;
|
|
|
|
import java.io.Serializable;
|
|
|
|
public class ChartOfAccountId implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private String porOrgacode;
|
|
private String pcaGlaccode;
|
|
|
|
public ChartOfAccountId(String porOrgacode, String pcaGlaccode) {
|
|
super();
|
|
this.porOrgacode = porOrgacode;
|
|
this.pcaGlaccode = pcaGlaccode;
|
|
}
|
|
|
|
public ChartOfAccountId() {
|
|
super();
|
|
}
|
|
|
|
public String getPorOrgacode() {
|
|
return porOrgacode;
|
|
}
|
|
|
|
public void setPorOrgacode(String porOrgacode) {
|
|
this.porOrgacode = porOrgacode;
|
|
}
|
|
|
|
public String getPcaGlaccode() {
|
|
return pcaGlaccode;
|
|
}
|
|
|
|
public void setPcaGlaccode(String pcaGlaccode) {
|
|
this.pcaGlaccode = pcaGlaccode;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
final int prime = 31;
|
|
int result = 1;
|
|
result = prime * result + ((pcaGlaccode == null) ? 0 : pcaGlaccode.hashCode());
|
|
result = prime * result + ((porOrgacode == null) ? 0 : porOrgacode.hashCode());
|
|
return result;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object obj) {
|
|
if (this == obj)
|
|
return true;
|
|
if (obj == null)
|
|
return false;
|
|
if (getClass() != obj.getClass())
|
|
return false;
|
|
ChartOfAccountId other = (ChartOfAccountId) obj;
|
|
if (pcaGlaccode == null) {
|
|
if (other.pcaGlaccode != null)
|
|
return false;
|
|
} else if (!pcaGlaccode.equals(other.pcaGlaccode))
|
|
return false;
|
|
if (porOrgacode == null) {
|
|
if (other.porOrgacode != null)
|
|
return false;
|
|
} else if (!porOrgacode.equals(other.porOrgacode))
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
|
|
|
|
}
|