-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate versus iBatis
PostPosted: Thu Feb 24, 2005 10:30 pm 
Regular
Regular

Joined: Tue Nov 30, 2004 4:23 pm
Posts: 62
I have just joined a team that is starting to build an architecture based on multiple components that will facilitate and old DBMS and a new developed DBMS. Most of the direction was towards a straight JDBC framework. But I just came form a project that utilized Hibernate. Hibernate was very powerful and fulfilled a majority of the requirements. We had created all our own integration to work with Hibernate, but really wanted to use Spring. So at my new company, I am suggesting Spring, but I am uncertain whether Hibernate or iBatis is a better solution. Hibernate is awesome in its capabilities and the limited amount of HQL that is required to produce so many of the CRUD operations. iBatis is an excellent choice as well because the framework could work with both our Java and .Net code, and utilizes SQL instead of requiring a new language to learn. Currently our database is horribly normalized...to receive improvements through a rewrite...but in the interim, both databases will need to be utilized. The team is uncertain if Hibernate would cause them to lose time in learning to adopt it, but it seems to be a very powerful solution. Any reasons why I would chose Hibernate or iBatis?

Thanks,

-jay


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 3:46 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
Hi

We have the following strategy:
  1. If the DB model isn't to ugly or you are permited to change it, use Hibernate as it saves you a lot of work.
  2. If even the new features of Hibernate 3 do not solve your problems fall bak to iBatis. (Actually this never happened so far ;-) ).
  3. If even this fails at least use something like Springs JDBC wrappers.

IMHO the DB model is the most important thing to decide whether Hibernate is good for you, but ther are other things as well:


HTH
Ernst


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.