This content has been marked as final.
Show 1 reply
-
1. Re: EJB 3 merge vs persist
vashistvishal Sep 28, 2006 1:37 AM (in response to hebahob)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....