What is Hibernate? #Java Short Notes

Why Hibernate?
A database is an integral part of many different types of applications. Standalone single-person applications to multi-user distributed business and enterprise applications make extensive use of databases. Many high end technology applications in industries including telecommunications, and surveillance systems make extensive use of databases. However, in recent years, the use of database has become complex in nature as the applications and their needs are complex themselves. In terms of database integration with persistence,J2EE EJB standard is the most successful strategy [Ref:Book:Pro Hibernate 3 by Apress]. Though, you can still use the SQL based access.

Hibernate is just another great way to access the backend databases. Hibernate complements many of the limitations of the EJB standard. EJB3 has followed Hibernate to provide persistence in EJB3.Hibernate provides Object Relational Mapping with persistence. Using Hibernate, you can access databases without making use of SQLs from your applications.The query can be done in the object level not in the database/sql level. The benefits are application programmers don't need to be bothered with SQL and backend stuffs, Hibernate provides persistence as well. However, it should not be regarded as the best solution for all types of database applications. For many, applications using the SQL based strategies are more appropriate. Using EJBs is also an option.

Latest version of Hibernate is 3, it is a major change from version 2. You can download it from http://www.hibernate.org. Check left menu for the download option. Download the production version of the latest release. Hibernate works with most databases as the backend. Usually, Hibernate sits on top of the driver for the corresponding DBMS and provides the abstraction to the application programmers.

Hibernate Development
Supports both .Net and J2EE platform

Tools required

JDK
Hibernate
Database like HSQL, MySQl, SQL Server
Ant tool

Download Hibernate:
http://hibernate.org/ from left menu download

Steps in developing Hibernate 3 applications
1. Create the configuration files to provide database connection related parameters
2. Create the Java class files [the POJO for persistence]
3. Create a mapping file between a table and the class4. From the mapping files, you can create SQL statements to create your database schema in the backend. Hibernate provides the tool SchemaExport for the purpose
5. Write the application From: http://sitestree.com/?p=5017
Categories:Java Short Notes
Tags:
Post Data:2007-05-06 15:54:46

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Leave a Reply