Hibernate Architecture

rahuldevan48@gmail.com·2021년 4월 14일
0

Hibernate has layered architecture it helps the user to perform without having the underlying APIs. Hibernate makes use of the configuration and database data to give persistence services (and determining articles) to the applications. The high-Level view of the Hibernate Application Architecture.

Hibernate uses various existing Java APIs, like JDBC, Java Transaction API(JTA), and Java Naming and Directory Interface (JNDI). JDBC provides a rudimentary level of abstraction of functionality common to relational databases, allowing almost any database with a JDBC driver to be supported by Hibernate. JNDI and JTA allow Hibernate to be integrated with J2EE application servers.

The following section gives a brief description of each of the class objects involved in Hibernate Application Architecture.

Configuration Object

The Configuration Object is the First Hibernate Object, which can perform in any hibernate application. It is usually created during the application initialization. It can serve the configuration or the properties file required by the Hibernate.

The Configuration provides two keys components:They are:

Class Mapping Setup--This component can create the connection between the

Database Connection-- This can be handled through one or more configuration files supported by Hibernate. These files are Hibernated.cfg.xml and Hibernated. properties.

Learn Hibernate course in Chennai at FITA Academy and get advanced knowledge in Hibernate Course.

Session Factory Object

The configuration object is mainly used to create a Session Factory object, Hibernate application is using the provided configuration file, it provides the session object to be instantiated.

The Session Factory is a thread-safe object and is managed by the wires of an application.

Session Object

A Session is applied to get a physical connection with the database. The Session object is lightweight objected and it is designed to be instantiated each time an interaction is required with the database. The persistent object is saved and retrieved through a Session object.

Transaction Object

A transaction can represent a unit of work, with the database and most of the support transaction functionality. A transaction can be controlled by the underlying transaction manager and transaction.

Query Object

Query objects use Hibernate Query Language string to recover data from the database and create objects. A query can be used to bind the query parameters, The number of results returned by the query, and finally to execute the query.

Criteria Object

Criteria objects are used to design and produce object-oriented criteria queries to retrieve the objects.

Are you Seeking Hibernate Training in Chennai? Walk into FITA Academy We are with the best atmosphere and environment. FITA Academy is one of the best leading educational institutions for Spring Hibernate Training in Chennai |

profile
Hibernate is an object-oriented mapping tool for the java programming language.

0개의 댓글

관련 채용 정보