[jboss-user] [JBoss Seam] - Re: UnsupportedOperationException when using h:selectManyLis

2007-08-30 Thread wise_guybg
Thanks, that worked. As it turns out, there is no need to call 
entityManager.merge() at all. As the Exam entity is always in the 
entityManager, any call to entityManager.flush() will do the job of updating 
the database. I guess no one has got my problem because I shouldn't have called 
merge() in the first place.

Thanks again.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079429#4079429

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079429
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UnsupportedOperationException when using h:selectManyLis

2007-08-29 Thread fernando_jmt
try this:

  | 
  | if(!entityManager.contains(exam))
  |  entityManager.merge(exam)  
  | 
  | 

HTH.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079219#4079219

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079219
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user