File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: Hibernate, Spring, and TopLink
jQuery in Action, 3rd edition