[jboss-user] [JBoss Seam] - Problems with the update method in Jboss Seam + Hibernate

lara do-not-reply at jboss.com
Thu Sep 21 04:31:28 EDT 2006

I have an entity bean called Actor and a stateful session bean called ActorEditorBean. The database table for the entity bean contains many fields, one of them is "name" which should be unique. When I try to create an actor, I make sure first that there is no existing actor with that name since it should be unique. If it happens that the name is already used, I return an error message and the actor could not be created unless the name is changed. This works perfectly but the problem is that when I want to update an actor, the same process should be done. I tried to follow the code step by step but I am not able to know when exactly the update is done. It seems that even without calling the update method explicitly, it is being called implicitly or maybe because of the entity manager. I would be very thankful if anyone can help!

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

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

More information about the jboss-user mailing list