[jboss-user] [JBoss Seam] - Re: selectManyCheckbox

JUnkie do-not-reply at jboss.com
Tue Jul 31 14:00:31 EDT 2007


This would be a safer and more generic equals() method that does not have to be changed for different entities.

public boolean equals(Object o){    
  return (o != null && (this.getClass().cast(o)).getId() == this.getId());
}

Have fun.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069301#4069301

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069301



More information about the jboss-user mailing list