ok, solved, I've just Overrided the HashCode and Equals methods, that was all,
do not Override toString() method.
| @Override
| public boolean equals(Object obj) {
| if (obj == null) {
| return false;
| }
| if (getClass() != obj.getClass()) {
| return false;
| }
| final ParamBase other = (ParamBase) obj;
| if (this.id != other.id && (this.id == null ||
!this.id.equals(other.id))) {
| return false;
| }
| return true;
| }
|
| @Override
| public int hashCode() {
| int hash = 7;
| hash = 97 * hash + (this.id != null ? this.id.hashCode() : 0);
| return hash;
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120120#4120120
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120120
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user