The Hibernate architecture incorporates numerous articles, for example, constant item, session industrial facility, exchange production line, association manufacturing plant, session, exchange and so on.
The Hibernate architecture is sorted in four layers.
- Java application layer
- Hibernate structure layer
- Backhand programming interface layer
- Database layer
Let's see the outline of sleep architecture :
This is the high level architecture of Hibernate with mapping file and configuration file.
Hibernate framework uses many objects such as session factory, session, transaction etc. alongwith existing Java API such as JDBC (Java Database Connectivity), JTA (Java Transaction API) and JNDI (Java Naming Directory Interface).
Elements of Hibernate Architecture
|For making the first Hibernate application, we should know the components of Hibernate architecture . They are as follows:|
The SessionFactory is an industrial facility of session and customer of ConnectionProvider. It holds second dimension store (discretionary) of data. The org.hibernate.SessionFactory interface gives factory method to get the object of Session.
The session object gives an interface between the application and data put away in the database. It is a brief lived and wraps the JDBC association. It is processing factory of Transaction, Query and Criteria. It holds a first-level reserve (compulsory) of data. The org.hibernate.Session interface gives techniques to embed, update and erase the item. It likewise gives manufacturing factory strategies to Transaction, Query and Criteria.
The exchange object indicates the nuclear unit of work. It is discretionary. The org.hibernate.Transaction interface gives techniques to exchange management.
It is a manufacturing factory of JDBC connections. It abstracts the application from DriverManager or DataSource. It is optional.
It is a manufacturing factory of Transaction. It is optional.