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-87c2c4800839master
parent
b61aef0312
commit
afba72a860
|
@ -179,4 +179,29 @@ public class ContaMD implements Serializable {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return getNome();
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue