Features of Hibernate
- Hibernate provides full-featured query facilities: Hibernate Query Language, the newly enhanced Hibernate Criteria Query API, and enhanced support for queries expressed in the native SQL dialect of the database.
- Filters for working with temporal (historical), regional or permissioned data.
- Enhanced Criteria query API: with full support for projection/aggregation and subselects.
- Runtime performance monitoring: via JMX or local Java API, including a second-level cache browser.
- Hibernate is Scalable: Hibernate has high performance and due to its dual-layer architecture can be used in the clustered environments.
- Less Development Time: Hibernate reduces the development timings as it supports inheritance, polymorphism, composition and the Java Collection framework.
- Automatic Key Generation: Hibernate supports the automatic generation of primary key for your.
In Hibernate, Java classes represent the table in the database and then map the instance variable in the class with the columns in the stabase. Then Hibernate can perform the operations like select, insert, update and delete by automatically creating the quiries.
Hibernate architecture has three main components:
- Connection Management: provides efficient management of the database connections.
- Transaction management: provides the ability to the user to execute more than one database statements at a time.
- Object relational mapping: technique of mapping the data representation from an object model to a relational data model and 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.
No comments:
Post a Comment