-->
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.  [ 4 posts ] 
Author Message
 Post subject: Why hibernate is so popular????
PostPosted: Sun Apr 22, 2012 2:02 pm 
Newbie

Joined: Fri Sep 09, 2005 11:11 am
Posts: 19
I am a long time j2ee developer. I worked with many dao products in the past. I admitted I only worked with few projects that involved hibernate. I found it relatively hard to use (i.e. defining complex entity relationships, restrictive default one class one table model, difficulty of upgrading to a newer hibernate..etc ) comparing to other products like ibatis. I guess I would really like to understand why hibernate is still fairly popular despite its learning curve? What are the strengths of hibernate?


Top
 Profile  
 
 Post subject: Re: Why hibernate is so popular????
PostPosted: Mon Apr 23, 2012 3:45 am 
Regular
Regular

Joined: Wed Apr 25, 2007 11:44 pm
Posts: 59
hi,

i might not be able to fully describe it to you nor will i try to convince against hibernate

so the thing is as u mentioned about ibatis/mybatis and assuming that you have worked on ibatis/mybatis and hibernate as well

yes there are other things that are very simple; and if the things are simple they are easier to implement right ?
so in hibernate here has much more things; try to explore it from the docs like sharding, search, .... which i guess are not in ibatis/mybatis

my point is that it totally depends upon your requirements and how you want to do it;

for example in a small project using simple mvc framework and with less complex database and architecture i will definitely go for hibernate alternatives (like ibatis) to make my project simple; since there is no need of hifi orm, sharding, ...

but if my project involve some complex db structure like sharding (cant think of any other example right now) i will definitely use hibernate to make my life easier and develop faster by concentrating on the application/business side.

hope that helps


Top
 Profile  
 
 Post subject: Re: Why hibernate is so popular????
PostPosted: Mon Apr 23, 2012 3:53 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
ibatis (mybatis) is not a Object-Relational-Mapping-Framework (ORM), whilst hibernate is one.
This is a big difference in my opinion and therefore it is also difficult to compare them.


Top
 Profile  
 
 Post subject: Re: Why hibernate is so popular????
PostPosted: Tue Apr 24, 2012 7:46 pm 
Newbie

Joined: Tue Apr 24, 2012 7:40 pm
Posts: 1
The other answers are really good. But to answer the "Why hibernate is so popular????" its because they are best of breed technologies that allow you to go faster. Hibernate does a lot more than just dependency injection and transactions. The provide solutions for JMS, scheduling, and other things. Plus, they are battle tested and well written. They allow you to focus on your business needs, and make some of the hard stuff go away.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.