[jboss-user] [JBoss Seam] - Re: Challenge: Simple Example Adding Records With Lookup Dro

johnurban do-not-reply at jboss.com
Wed Nov 1 23:56:19 EST 2006


Wow, I get to answer my own question for a change:

The validation error was resolved when I read the example by Mr. Muir. I had to override the equals method:


  |         @Override
  |         public boolean equals(Object obj) {
  |             if (!(obj != null && obj instanceof Room))
  |                 return false;
  |             Room rm = (Room) obj;
  | 
  |             if (this.id.equals(rm.id))
  |                 return true;
  | 
  |             return false;
  |         }
  | 

The next problem I got I fixed reading another forum post.. changing the entityManager.persist to entitymanager.merge

I GOT THE Record to ADD!!

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

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



More information about the jboss-user mailing list