I have just learning Hibernate. So wanted to know which among hibernate and IBatis is better. Or is there any general trend when to use IBatis and when to use Hibernate with respect to their strength and weaknesses.
Thanks and Regards,
Thanks and Regards, Pradeep Kumar
SCJP 1.6, SCWCD 5.0
Hibernate and iBatis are a bit difficult to compare since they are different in what they do. Hibernate is true object relational mapping. iBatis is simpler than that. It simply maps sql back to objects, an SQL mapper if you will. You should read up on what Object Relational Mapping really is and determine if that is what you need. If you are just looking for an easy way to get a ResultMap into a POJO then iBatis might be the way to go.
Jothi Shankar Kumar wrote:From my colleagues that have worked both on iBatis and Hibernate, I've been told that iBatis is much more better and faster compared to Hibernate and infact is much easier to use than Hibernate.
You can't just say that, especially when it is hear say, and because they do different things. Though they do solve a somewhat common problem, ORM is much more than SQL Mapping. MUCH MORE.
In my opinion,iBatis is kind of OQM (Object Query Mapping) ,while hibernate is complete ORM thus both cant be compared
But 1 thing is for sure is iBatis is much more simpler,easy to learn and gives you more freedom in terms of writting complex SQL queries...
Thats what my experience says..