What is the exact use of hibernate?which one is bwter among the jdbc api,hibernate and ejb?

Questions by suri_veeru

Showing Answers 1 - 3 of 3 Answers

Naveen Kumar Nuka

  • May 9th, 2007
 

JDBC: Writing the programmes using JDBC Connection, the user has to take transactions demarcation and changes in the persistence layer (database) it's expensive to propagate the changes in the code , and developer has have the knowledge of database queries.

Entity Bean: Compartive to JDBC Entity beans provide lot of abstraction about the persistance layer , but that can be configured through the xml files, here configuration of xml and writing the beans are required J2EE experts knowledge , and advantage is that trasnaction can be handled programtic or declartive. it's heavy weight componts.

Hibernate: Hibernate persistance layers sits between the application layer and database.

easy-to-use and powerful object-relational persistence framework for Java applications.

It's Object Relation mapping give maximum flexlibity for the developer to manage the java object easly and provid rich hibernate query language so that user need not worry about the query creation, and one more beautiful feature of hibernate is it's database independent , ie if u want change the Database, just change of single line of hibernate config. xml ie call dialect is sufficient . if i go on discussing like this lot of features are there.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions