[jboss-user] [Beginners Corner] - Re: EJB 3 merge vs persist
do-not-reply at jboss.com
Thu Sep 28 01:37:10 EDT 2006
What merge () does is - is to put back the detached entity back into persistence storage.
So if in yr case- if yr entity was detached it will put it back to persistence which means you don't have to call persist again.
For answer to part 2. - merge() method with throw an illegal Arguement Exception if its paramter is not an entity type.
I hope this helps....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974755#3974755
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974755
More information about the jboss-user