-->
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.  [ 8 posts ] 
Author Message
 Post subject: Differnece Between Spring and hibernate.
PostPosted: Thu Nov 17, 2005 4:21 am 
Newbie

Joined: Thu Nov 17, 2005 4:17 am
Posts: 5
Can you please any one tell me difference between Hibernate and Spring Framework. As i am new these two framework. So i cannot understand which one is better. Or these two technologies are totally different.

We are supposed to start new project so we are evaluating the technologies. You help will help us to evaluate the technologies in correct way.


Please do reply.

Thanks.
nitin mandolkar.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 17, 2005 4:34 am 
Beginner
Beginner

Joined: Sat Oct 22, 2005 11:16 pm
Posts: 40
They are totally different. They could compliment eachother.

Hibernate is a layer which makes it easy (or easier) to save and retrieve Java objects to an underlying storage system, typically a relational database. Spring does not do object-relational mapping.

You might want to bring in a consultant for some of your design phase. The right consultant will know that your project "needs" some tool, rather than going out looking for things that might help.


Top
 Profile  
 
 Post subject: Spring?
PostPosted: Thu Nov 17, 2005 10:45 am 
Newbie

Joined: Thu Nov 17, 2005 4:17 am
Posts: 5
What About Spring.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 17, 2005 11:17 am 
Newbie

Joined: Tue Nov 15, 2005 1:54 pm
Posts: 6
Quote:
What About Spring.


Depending on whom you talk to, different people will give
you different answers on this question. Here's my
version ;-)

Spring is a container, a framework that can help you build
any kind of java application. On the very basic level, it is
an IOC (Inversion of Control) utility that can plug arbitrary
beans together. That may not sound like much, but trust me -
it is one of the powerful ways to integrate all kinds of services
(like web-server, hibernate, jdbc, rmi) I have seen so far.
Further, Spring comes with a huge library of prefabricated
utility classes for the most common use cases (such as
connecting to JDBC, setting up Hibernate etc) in an J2EE
application environment.

On top of that, spring offers many other components. One
of my personal favorites is an extremely powerful AOP (aspect
oriented programming) framework. It also has its own web layer and
much more, but it does not force you to use any of it. You can
just stick to the parts that you like and replace anything else
with other components, e.g. struts.

If you are looking for a good book about spring, take a look
at Spring In Action. It is not 100% up to date (what book can
every be in our rapid open-source world), but it is a very
good overview of what the framework can do.

Best regards,

Jens

_________________
............................................

Jens Scheffler
Senior Software Engineer
INIT Innovations in Transportation, Inc.

1400 Crossways Blvd. Suite 110
Chesapeake, VA 23320, USA


Top
 Profile  
 
 Post subject: Thanks and one more Question.
PostPosted: Fri Nov 18, 2005 1:32 am 
Newbie

Joined: Thu Nov 17, 2005 4:17 am
Posts: 5
Hi Thnks for your reply.

One more thing. Can i use Spring and Hibernate in Same application if yes, How.

Nitin Mandolkar.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 18, 2005 5:04 am 
Senior
Senior

Joined: Thu Aug 04, 2005 4:54 am
Posts: 153
Location: Birmingham, UK
Try looking at the Spring in Action book which metnions using Hibernate and Spring together (AFAIK) or checking the spring website and documentation. Using spring & hibernate together is a spring issue not a hibernate issue.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 18, 2005 10:07 am 
Newbie

Joined: Tue Nov 15, 2005 1:54 pm
Posts: 6
Quote:
Try looking at the Spring in Action book which metnions using Hibernate and Spring together (AFAIK) or checking the spring website and documentation. Using spring & hibernate together is a spring issue not a hibernate issue.


Correct. Spring comes with built-in beans that support tie-in to Hibernate. Depending on what level of automation you want, there is a very nice template-class (HibernateDaoSupport) that makes using Hibernate within spring very easy. I suggest reading the Spring in Action book - it's all explained in there.

_________________
............................................

Jens Scheffler
Senior Software Engineer
INIT Innovations in Transportation, Inc.

1400 Crossways Blvd. Suite 110
Chesapeake, VA 23320, USA


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 25, 2005 8:30 am 
Newbie

Joined: Thu Nov 17, 2005 4:17 am
Posts: 5
ok.

Thanks for your help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.