Hibernate Architecture is based on some object which is use in Hibernate like as Session, SessionFactory ,Transaction, ConnectionProvider, etc
There are 4 layer of hibernate Architecture.
See below
This is high level hibernate architecture :
Elements of Hibernate Architecture
Session: Session Object provide interface between our application data store in the database .It holds first level cache.It is short lived Object it wraps to jdbc. Session Object provide many method to store data commit,etc.
SessionFactory: SessionFactory is a factory session and client of connection Provider.It hold second level cache.
Transaction: The transaction object specifies the atomic unit of work. It is optional. The org.hibernate.Transaction interface provides methods for transaction management.
TransactionFactory: It is factory of transaction methods.
ConnectionProvider: it help to provide connection between our application and database .it help load all jdbc file.
There are 4 layer of hibernate Architecture.
See below
This is high level hibernate architecture :
Elements of Hibernate Architecture
Session: Session Object provide interface between our application data store in the database .It holds first level cache.It is short lived Object it wraps to jdbc. Session Object provide many method to store data commit,etc.
SessionFactory: SessionFactory is a factory session and client of connection Provider.It hold second level cache.
Transaction: The transaction object specifies the atomic unit of work. It is optional. The org.hibernate.Transaction interface provides methods for transaction management.
TransactionFactory: It is factory of transaction methods.
ConnectionProvider: it help to provide connection between our application and database .it help load all jdbc file.
No comments:
Post a Comment