Share on Google+Share on Google+

Deepak Kumar
What are the advantages of Hibernate?
2 Answer(s)      6 years and 6 months ago
Posted in : Hibernate

Hi,

Tell me the advantages of Hibernate?

Thanks

Ads

View Answers

October 27, 2010 at 5:49 PM


Hibernate advantages:

  1. Database independent application.

2.In Jdbc we use .properties file and in hibernate we use .xml file which is a better approach.

3.Automatic primary key generation

4.Object/Relational mapping definition

5.High Performance

6.Primary feature of hibernate is to java classes to database tables. Data query and retrieval is also possible with Hibernate

7.Hibernate it allows developers to port applications to almost all SQL databases.

8.You will get benefit of Cache. Hibernate support two level of cache. First level and 2nd level. So you can store your data into Cache for better performance. In case of JDBC you need to implement your java cache.

9.In the xml file you can see all the relations between tables in case of Hibernate. Easy readability.

10.You can load your objects on start up using lazy=false in case of Hibernate.JDBC Don't have such support.

11.Hibernate Supports automatic versioning of rows but JDBC Not.

Thanks



October 27, 2010 at 5:49 PM


Hi,

Read more at Hibernate advantages and disadvantages.

Thanks










Tutorials   
Java Spring Hibernate Struts Training java.lang.IndexOutOfBoundsException: Remember that ordinal parameters are 1-based! org.hibernate.validator cannot be resolved error java.lang.ClassNotFoundException: org.hibernate.cache.TimestampsRegion java.lang.ClassNotFoundException: org.hibernate.cache.TimestampsRegion property hibernate.cache.region.factory_class is not given Hibernate example step by step in Eclipse with MySQL How to make Struts Hibernate and Spring Based Login/Registration Application? What is the use of Hibernate Native SQL? What is the use of Hibernate is used? How to integrate Struts and Hibernate in an application? How to create the program in Java for getting the forgotten Password Form? How to write create JPA Many-to-Many Relationship in Java? What is the DAO Layer in any application? What is Spring Struts Hibernate DAO Layer? How to write Example code for CRUD application in hibernate annotation? Where to update the Hibernate tools? Query conversion convert into hql how to convert sql into hql package org.hibernate.util does not exist C3P0 with Hibernate What do you understand by JPA? Hibernate Query Checker Jpa many to many relationship What do you understand by Hibernate in Java? What are criteria Queries in Hibernate? How to use Associations and Joins in Hibernate? Hibernate 4 Example with Eclipse How to learn Hibernate? What is Hibernate Framework? hibernate faq 15/03/14 hibernate 15/03/2014 Hibernate Criteria Wildcard how to add mulitiple projections this is a hibernate question this is a hibernate question this is a hibernate question how to writw connection pool coding Hibernate 4.3 and JPA 2.1 support How to create Hibernate session factory name? Can you provide me Hibernate configuration tutorial? I want to build sessionfactory in hibernate 4. Need help. I want to learn Hibernate tutorial quickly How to create sessionfactory in Hibernate 4.1.1? How to create sessionfactory in Hibernate 4.1? Hibernate 4.3.0.Final get session How to learn hibernate in 24 hours? hibernate 4.3.0 I want to know how can I create sessionfactory in hibernate 4 (latest version) standard serviceregistrybuilder example

Ads

 
Advertisement null

Ads