Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why is persistence by reachability important for an application?

 
Daniel Devlin
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am currently studying for my final exams at university. I have been studying JDO states and how they are related. One question that has been asked a lot in the past for this module relates to persistence by reachability and why it is important for applications. Below are the advantages I identified:

The first advantage of persistence by reachability is that it reduces the code needed to make objects persistent. Objects that are referenced from persistent objects are automatically made persistent when committed. This saves the programmer from having to call the make persistent method on each object. The ability to store related objects provides an easy way to store object graphs as the Persistence Manager handles the storage itself. By maintaining these relationships between objects it also makes it easier and more efficient when they are needed as they can easily be found by the references from within the initially persisted objects. To summarize persistence by reachability allows the efficient storage of related items with the minimal amount of code and as a result provides an easy way to reference objects when required.

I would appreciate any feedback anybody has about the answer. The marks for the question are 8 but the first part of it asks to define persistence by reachability which I can do fine.

Thanks in advance,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic