This content has been marked as final.
Show 1 reply
-
1. Re: s:ConvetEntity problem in Seam 2.2.2.Final
davidfdr.davidfdr.gmail.com Jul 24, 2011 2:18 PM (in response to davidfdr.davidfdr.gmail.com)Hey!!! I Found the error.
I used Eclipse to implement hashCode and equals methods shortcut.
The equals method implemented was wrong (maybe hibernate proxy object, i don´t know).
I changed the method to the following:
@Override
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof Municipio))
return false;
Municipio castOther = (Municipio) other;
if(null != this.getNuMunicipio() && !"".equals(this.getNuMunicipio())){
return (this.getNuMunicipio().equals(castOther.getNuMunicipio()));
}else{
return false;
}
}
And everything is working OK now.