Transitive persistence is true for (Web hosting companies) Java Persistence, which

Transitive persistence is true for Java Persistence, which also has the concept of transitive persistence and almost all the options Hibernate natively provides. 12.1.1 Persistence by reachability An object persistence layer is said to implement persistence by reachability if any instance becomes persistent whenever the application creates an object reference to the instance from another instance that is already persistent. This behavior is illustrated by the object diagram (note that this isn t a class diagram) in figure 12.1. In this example, Computer is a persistent object. The objects Desktop PCs and Monitors are also persistent: They re reachable from the Computer Category instance. Electronics and Cellphones are transient. Note that we assume navigation is possible only to child categories, but not to the parent for example, you can call computer.getChildCategories(). Persistence by reachability is a recursive algorithm. All objects reachable from a persistent instance become persistent either when the original instance is made persistent or just before in-memory state is synchronized with the datastore. Persistence by reachability guarantees referential integrity; any object graph can be completely re-created by loading the persistent root object. An application may walk the object network from association to association without ever having to worry about the persistent state of the instances. (SQL databases have a different approach to referential integrity, relying on declarative and procedural constraints to detect a misbehaving application.) In the purest form of persistence by reachability, the database has some top-level or root object, from which all persistent objects are reachable. Ideally, an instance should become transient and be deleted from the database if it isn t reachable via references from the root persistent object. Figure 12.1 Persistence by reachability with a root persistent object
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.

Leave a Reply