GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Hibernate
Go To First  |  Previous Question  |  Next Question 
 Hibernate  |  Question 30 of 34    Print  
why Hibernate came in to picture
Anybody tell me please, where exactly Hibernate is used..tell me about the mapping and .xml file in Hibernate


  
Total Answers and Comments: 4 Last Update: August 26, 2009     Asked by: udayvkumar 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: srinathvaralakshmi
 
The reasons are plenty,weighing in favor of Hibernate clearly.

-Cost effective.Just imagine when you are using EJBs instead of Hibernate.One has to invest in Application Server(Websphere,Weblogic etc.),learning curve for EJB is slow and requires special training if your developers are not equipped with the EJB know-how.

-The developers get rid of writing complex SQLs and no more need of JDBC APIs for resultset handling.Even less code than JDBC.In fact the OO developers work well when they have to deal with object then writing lousy queries.

-High performance then EJBs(if we go by their industry reputation),which itself a container managed,heavyweight solution.

-Switching to other SQL database requires few changes in Hibernate configuration file and requires least clutter than EJBs.

-EJB itself has modeled itself on Hibernate principle in its latest version i.e. EJB3 because of apparent reasons.


Above answer was rated as good by the following members:
geeky920, sanket_snaik, vinoddoranala, sambitsahu
May 19, 2008 09:06:52   
madhukar2sri Member Since: May 2008   Contribution: 2    

RE: why Hibernate came in to picture
To make the application developemnt more productive. its saves development time and also mainly it deals with Objects(POJO) .
and .xml file is nuthing but mapping between database column and POJO variable.
you can easily switch the database like MySql to Oracle you need not to change any of your code... just you can change a simple dylect in cfg file of hibernate to oracle it works with no error.

 
Is this answer useful? Yes | No
June 12, 2008 05:59:31   
ipan_mirra Member Since: June 2008   Contribution: 5    

RE: why Hibernate came in to picture
To make the application developemnt more productive. its saves development time and also mainly it deals with Objects(POJO) . and .xml file is nuthing but mapping between database column and POJO variable. you can easily switch the database like MySql to Oracle you need not to change any of your code... just you can change a simple dylect in cfg file of hibernate to oracle it works with no error.

Addition to that we have visual paradigm tool which helps to create the object model.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 14, 2009 09:32:09   
srinathvaralakshmi Member Since: July 2009   Contribution: 1    

RE: why Hibernate came in to picture
The reasons are plenty weighing in favor of Hibernate clearly.

-Cost effective.Just imagine when you are using EJBs instead of Hibernate.One has to invest in Application Server(Websphere Weblogic etc.) learning curve for EJB is slow and requires special training if your developers are not equipped with the EJB know-how.

-The developers get rid of writing complex SQLs and no more need of JDBC APIs for resultset handling.Even less code than JDBC.In fact the OO developers work well when they have to deal with object then writing lousy queries.

-High performance then EJBs(if we go by their industry reputation) which itself a container managed heavyweight solution.

-Switching to other SQL database requires few changes in Hibernate configuration file and requires least clutter than EJBs.

-EJB itself has modeled itself on Hibernate principle in its latest version i.e. EJB3 because of apparent reasons.

 
Is this answer useful? Yes | NoAnswer is useful 3   Answer is not useful 0Overall Rating: +3    
August 25, 2009 04:32:58   
madhusudan_ds Member Since: June 2009   Contribution: 2    

RE: why Hibernate came in to picture
I think the answers above are a sufficient reason to understand why hibernate? But don't get confused when we are drawing comparisions between EJBs and Hibernate. They are not actually parallel technologies or competitors. In fact they work in association with each other. I mean they compliment each other.

Hibernate is no solution for skipping EJBs nor do EJBs are for Hibernate. Hibernate is an ORM tool / technology which actually aides the Java / J2EE / JEE 5 programming. But it would not eliminate the very reason of existence of EJBs. Rather Spring Framework does it. So EJBs (read J2EE) and Hibernate and JBoss forms a group and it confronts the other group Spring Framework. And please don't get confused which technology is competing with which.

Anyways it is just a clarification for the detailed answers provided above.


regards
Madhusudan.

 
Is this answer useful? Yes | No


 
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