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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user