This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
in the code mentioned in the book , why is entityManager.merge(item) used as a parameter to methods refresh and remove?? if entityManager.merge(item) is used inside the refresh method , then merge will first update the database and then refresh will bring the newly updated value back , so will undoItemChanges work??
what does entityManager.merge(item) actually return?? the instance with old values or the instance of item with modified values??
any help would be really appreciated [ May 03, 2008: Message edited by: Ash More' ]
Joined: Apr 20, 2008
ok, i was running too ahead of myself. the explanation has been given through the rest of the chapter. i got the answer to my queries.