File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes which ORM to use with spring framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "which ORM to use with spring framework " Watch "which ORM to use with spring framework " New topic

which ORM to use with spring framework

Lucky J Verma
Ranch Hand

Joined: Apr 11, 2007
Posts: 278

We have been using JDBC Access & SimpleJDBCTemplate/JDBCCall in our application for db access and are considering to move to
some ORM framework.
personally i have worked on JPA and Hibernate in the past but i read about many other orm frameworks
like toplink , iBatis, and Apache cayenn which ii read is very good.

So i am confused about which one should be used?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Use the one that works best for your problem area. The first thing I'd ask myself is "why do I think I need to move to an ORM solution?" - Is your current JDBC solution too hard to maintain? Is there too much hand wiring? Is the code becoming difficult to maintain? Is it difficult to test? Once you've answered those questions you can beging to look at the other solutions and find out which ones solve the problems you're having.

If you don't do that you're making an ignorant decision which will generally be the wrong decision.

GenRocket - Experts at Building Test Data
Bill Gorder

Joined: Mar 07, 2010
Posts: 1682

Also while making your informed decision as Gregg pointed out be aware of the following

iBatis is no longer supported. MyBatis (the new iBatis) is supported. Also MyBatis is not an ORM, it is an SQL Mapping framework.
Apache Cayenne is not JPA compliant.

The major JPA compliant persistence providers are Hibernate, Toplink, OpenJPA, and Eclipselink.

[How To Ask Questions][Read before you PM me]
I agree. Here's the link:
subject: which ORM to use with spring framework
It's not a secret anymore!