[jboss-user] [JBoss Seam] - Re: Help, <s:convertEntity /> problem

nicoliniyo do-not-reply at jboss.com
Tue Jan 15 10:10:40 EST 2008


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



More information about the jboss-user mailing list