GeekInterview.com
Series: Subject: Topic:
Question: 17 of 49

What is different between Hibernate and iBatis?

Asked by: siva2baba | Member Since Nov-2007 | Asked on: Apr 28th, 2008

View all questions by siva2baba   View all answers by siva2baba

Showing Answers 1 - 4 of 4 Answers
vdurgesh

Answered On : Jun 23rd, 2008

View all answers by vdurgesh

1. Hibernate works well when you control the data model, iBatis works well when you need to intergate with an existing database, 2. With IBatis you will get full control on SQL but hibenate deals with relationships of tables.

  
Login to rate this answer.
alkumar2000

Answered On : Aug 13th, 2008

View all answers by alkumar2000

Ibatis is something in between Hibernate and JDBC.Hibernate provides a way to represent database rows as objects so that developers can easily call create update delete methods on them where Ibatis helps developers in mapping SQL queries in the form of XML files these queries can be mapped to a name and parameters can be passed to them. Now these queries can be accesed as Java objects and can be called by passing parameters.

  
Login to rate this answer.
dhandabani.j

Answered On : Jan 22nd, 2009

View all answers by dhandabani.j

Yes  4 Users have rated as useful.
  
Login to rate this answer.
uday.dandu

Answered On : Jul 27th, 2010

View all answers by uday.dandu

In iBatis Java objects are mapped to the result sets. IBatis only maps the Java bean properties to database fields, and it fetches the database results in the form of Java beans based on configuration. In Hibernate Java objects are mapped to the database tables.iBATIS maps Java Objects to the results of SQL Queries, whereas Hibernate maps Java Objects directly to database tables, traditional Object-Relational Mapping. The benefits of Hibernate are that it automatically generates all the SQL for your and the cache invalidation can be more fine grained. iBATIS is more flexible especially if we are a strong SQL query writer. We have control over exactly how the SQL queries are written.iBATIS uses Data Mapper Pattern whereas Hibernate uses Active Record Pattern

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.