fixes bug#19807

dev:valdevir
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@102766 d1611594-4594-4d17-8e1d-87c2c4800839
master
wilian 2020-08-04 18:56:06 +00:00
parent b61aef0312
commit afba72a860
2 changed files with 44 additions and 0 deletions

View File

@ -179,4 +179,29 @@ public class ContaMD implements Serializable {
public String toString() {
return getNome();
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getContaId() == null) ? 0 : getContaId().hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (!(obj instanceof ContaMD))
return false;
ContaMD other = (ContaMD) obj;
if (getContaId() == null) {
if (other.getContaId() != null)
return false;
} else if (!getContaId().equals(other.getContaId()))
return false;
return true;
}
}

View File

@ -0,0 +1,19 @@
package com.rjconsultores.ventaboletos.enums;
public enum MDOrigem {
INTERNO("IN"),
EVENTO_EXTRA("EE"),
FORMA_PAGAMENTO("FP");
private String value;
private MDOrigem(String value) {
this.value = value;
}
public String getValue() {
return value;
}
}