posted 16 years ago
Hi,
In order to avoid the problem you stated, One needs to merge before doing the update or delete on the entity.
Like, If you want to delete a employee object from the database,
We need to do like,
In the above code, before deleting the employee object, the entity manager make sure that it is synchronize with the database.
Hope this helps.
Thanks&Regards, Krishna.
SCJP1.4, SCWCD1.4, SCBCD 5.0