1 / 7

Introduction to Hibernate Framework | Hibernate Framework in

Hibernate is an object-relational mapping library for the Java language, providing a framework for mapping an object-oriented domain model to a traditional relational database. Hibernate solves object-relational impedance mismatch problems by replacing direct persistence-related database accesses with high-level object handling functions.

cpdindia
Download Presentation

Introduction to Hibernate Framework | Hibernate Framework in

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Call Us: 01165164822 CPD TECHNOLOGIES Add:- Block C 9/8, Sector -7, Rohini, Delhi-110085, India www.cpd-india.com Blog.cpd-india.com

  2. Hibernate Architecture The above diagram shows that Hibernate is using the database and configuration data to provide persistence services (and persistent objects) to the application. To use Hibernate, it is required to create Java classes that represents the table in the database and then map the instance variable in the class with the columns in the database. Then Hibernate can be used to perform operations on the database like select, insert, update and delete the records in the table. Hibernate automatically creates the query to perform these operations.

  3. Hibernate architecture has three main components: Connection Management:-Hibernate connection management service provide efficient management of the database connections. Database connection is the most expensive part of interacting with the database as it requires a lot of resources of open and close the database connection.

  4. Transaction Management: Transaction management service provide the ability to the user to execute more than one database statements at a time.

  5. Object Relational Mapping: Object relational mapping is technique of mapping the data representation from an object model to a relational data model. This part of the hibernate is used to select, insert, update and delete the records form the underlying table. When we pass an object to a Session. Save() method, Hibernate reads the state of the variables of that object and executes the necessary query.

  6. Hibernate isvery good tool as far as object relational mapping is concern, but in terms of connection management and transaction management, it is lacking in performance and capabilities. So usually hibernate is being used with other connection management and transaction management tools Hibernate provides a lot of flexibility in use. It is called "Lite" architecture when we only uses the object relational mapping component. While in "Full Cream" architecture all the three component Object Relational mapping, Connection Management and Transaction Management) are used.

  7. Thank You CPD TECHNOLOGIES Block C 9/8, Sector -7, Rohini, Delhi-110085, IndiaLandmark: Near Rohini East Metro Station, Opposite Metro Pillar No-397Telephone: 011-65164822Mobile: +91- 8860352748Email: support@cpd-india.com www.cpd-india.com Blog.cpd-india.com

More Related