This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Hibernate, Spring, and TopLink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Hibernate, Spring, and TopLink" Watch "Hibernate, Spring, and TopLink" New topic

Hibernate, Spring, and TopLink

Unnsse Khan
Ranch Hand

Joined: Nov 12, 2001
Posts: 511
I've been reading some of the discussions on this particular forum.

Consider me a newbie when it comes to these frameworks.....

I just started a new project and wish to know what the difference is between Hibernate, Spring, and TopLink? I know that Hibernate and TopLink (Oracle) are for object relational mapping (ORM), but what about Spring?

Should someone use these frameworks instead of EJB 2.0 or EJB 2.1?

Can they be incorporated into any app server (EJB Container)?

With thanks!
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
Probably this article will introduce you better to Spring world, than I am able to.

:alex |.::the_mindstorm::.

blog -
Loren Rosen
Ranch Hand

Joined: Feb 12, 2003
Posts: 156
Hibernate and TopLink are direct competitors. They both do object/relational mapping.

EJB combines together a bunch of things: ORM, declarative transaction management, declarative security, distributed transactions, etc.

One of the ideas behind Spring is rather than forcing you to take that entire bunch of stuff, build a framework in which you can integrate whatever facilities you need, and pick the implementation you want. Thus with Spring you can easily use Hibernate, Toplink, or whatever for you ORM. You can also use Hibernate or Toplink with EJB, but it's a little awkward to do so.
Have you tried LearnNowOnline?
subject: Hibernate, Spring, and TopLink