Topics
1. Introduction to hibernate.
Hibernate is a pure Java object-relational mapping (ORM) and persistence framework that allows you to map plain old Java objects to relational database tables using (XML) configuration files. Its purpose is to relieve the developer from a significant amount of relational data persistence-related programming tasks. Hibernate simplifies:
1. Saving and retrieving your domain objects
2. Making database column and table name changes
3. Centralizing pre save and post retrieve logic
4. Complex joins for retrieving related items
5. Schema creation from object model.
So, Hibernate is simple ORM (Object Relational Mapping) tools that provides a framework for mapping an object-oriented domain model to a relational database.
2. What is ORM.
Actually ORM is complete MVC (Model View and Control) based application.
the four ORM levels are in hibernate?
Following are the four ORM levels in hibernate:
1. Pure Relational
2. Light Object Mapping
3. Medium Object Mapping
4. Full Object Mapping
3. Advantages of Hibernate:
I. Auto DDL (Data Definition Language) Command: DDL query means Create Table, Alter Table, Rename Table. Hibernate automatically create table.
II. Support database independent query: Hibernate support database independent query language i.e. HQL (Hibernate Query Language).
III. Cache Support: cache actually stores the data already loaded from the database.
IV. Generator Support: Provide the facility to create primary key, foreign key, sequence generator.
V. Data Validation Support: Hibernate validation is recommended validation. Hibernate filter the data if data is valid then it send to database.
VI. Hibernate code is Exception free.
VII. ORM Relationalship support: Is like IS-A, HAS-A Relation .
1. Introduction to hibernate.
Hibernate is a pure Java object-relational mapping (ORM) and persistence framework that allows you to map plain old Java objects to relational database tables using (XML) configuration files. Its purpose is to relieve the developer from a significant amount of relational data persistence-related programming tasks. Hibernate simplifies:
1. Saving and retrieving your domain objects
2. Making database column and table name changes
3. Centralizing pre save and post retrieve logic
4. Complex joins for retrieving related items
5. Schema creation from object model.
So, Hibernate is simple ORM (Object Relational Mapping) tools that provides a framework for mapping an object-oriented domain model to a relational database.
2. What is ORM.
Actually ORM is complete MVC (Model View and Control) based application.
the four ORM levels are in hibernate?
Following are the four ORM levels in hibernate:
1. Pure Relational
2. Light Object Mapping
3. Medium Object Mapping
4. Full Object Mapping
3. Advantages of Hibernate:
I. Auto DDL (Data Definition Language) Command: DDL query means Create Table, Alter Table, Rename Table. Hibernate automatically create table.
II. Support database independent query: Hibernate support database independent query language i.e. HQL (Hibernate Query Language).
III. Cache Support: cache actually stores the data already loaded from the database.
IV. Generator Support: Provide the facility to create primary key, foreign key, sequence generator.
V. Data Validation Support: Hibernate validation is recommended validation. Hibernate filter the data if data is valid then it send to database.
VI. Hibernate code is Exception free.
VII. ORM Relationalship support: Is like IS-A, HAS-A Relation .
No comments:
Post a Comment