Object Relationship Management of Hibernate and Spring -

xiaoxiao2021-03-06  77

Hibernate and Spring manage the relationship between objects (or "entities), but actually their way and side focus are different:

l Hibernate As a persistent layer frame, it is concerned that the sectable operation of the relevant objects in the field of the domain objects, this level of operation is related to the persistent strategy of: timing, order, integrity constraint, Concurrent, transaction, access optimization. And there is a data association, INVERSE, CASCADE, LAZY LOADING, LOCKING, CACHE these functions or mechanisms.

l The relationship management of Spring is a business-oriented, and its management of object relationships mainly involves: dependence, dynamic behavior management, behavioral packages. There is this mechanism such as IOC, AOP, BeanFactory.

In other words, the main focus on the data relationship between the object (or in this range), Spring is mainly concerned about the management of the behavioral relationship of the object. One is a static relationship management, one is dynamic relationship management.

Static relationship management is an object-oriented-oriented conversion, thereby generating a problem with the domain object and transaction script of the business layer. Dynamic relationship management is an object-oriented (or may be based on an object) method and a process-oriented conversion, thereby generating proactive and passive problems.

转载请注明原文地址:https://www.9cbs.com/read-89916.html

New Post(0)