GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Hibernate
Go To First  |  Previous Question  |  Next Question 
 Hibernate  |  Question 22 of 34    Print  
What is the main difference between Entity Beans and Hibernate ?

  
Total Answers and Comments: 3 Last Update: November 21, 2008     Asked by: rajeah 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: nitinpokhriyal
 

It is not right answer as given by ranveer.

Entity beans now become JPA so it has all the feature which hibernate has.
All the application server has to provide implementation of jpa using presistent provider  like hibernate ,toplink.

Entity beans are heavy objects and carefully needs to be choose. on other hand hibernate can be good choice for small to mid size projects.

Entity beans come with container advatanges and this feature make it slow too.
Hibernate, we need to manage the transaction,security,etc.



Above answer was rated as good by the following members:
getravi2k, swatipriyadarsani
September 11, 2007 05:04:44   
Ranveer Kumar        

RE: What is the main difference between Entity Beans a...
1) In Entity Bean at a time we can interact with only one data Base. Where as in Hibernate we can able to establishes the connections to more than One Data Base. Only thing we need to write one more configuration file.

2) Entity Beans does not support OOPS concepts where as Hibernate does.

3) Hibernate supports multi level cacheing where as Entity Beans doesn't.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 15, 2008 20:44:53   
nitinpokhriyal Member Since: November 2005   Contribution: 4    

RE: What is the main difference between Entity Beans and Hibernate ?

It is not right answer as given by ranveer.

Entity beans now become JPA so it has all the feature which hibernate has.
All the application server has to provide implementation of jpa using presistent provider like hibernate toplink.

Entity beans are heavy objects and carefully needs to be choose. on other hand hibernate can be good choice for small to mid size projects.

Entity beans come with container advatanges and this feature make it slow too.
Hibernate we need to manage the transaction security etc.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 21, 2008 19:10:47   
shashi1983 Member Since: November 2008   Contribution: 1    

RE: What is the main difference between Entity Beans and Hibernate ?
The main diffrence between Entity Bean and hibernate is Entity Bean is a heavy weight component and hibernate is a light weight component.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape