adspace


Explain the advantages and disadvantages of detached objects.

Answer Posted / Yatendra Kumar

Detached objects are Hibernate entities that have been detached from the session. Advantages include: 1) Flexibility as you can modify the object without affecting the database; 2) Reduced load on the database as changes are not saved immediately. Disadvantages include: 1) Changes to detached objects are not tracked, so differences between the original and modified object need to be handled manually before reattaching; 2) If you want to persist the changes, you'll have to save or update the object explicitly.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category