-->
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.  [ 11 posts ] 
Author Message
 Post subject: What is the difference between Spring and Hibernate?
PostPosted: Wed Oct 15, 2008 4:25 pm 
Beginner
Beginner

Joined: Wed Oct 08, 2008 10:59 am
Posts: 37
Sorry for this question but as far as I know Spring is a alternative to Hibernate.

Is this true?

What is the difference between Spring and Hibernate?

Is there a comparison article somewhere ?

Peter


Top
 Profile  
 
 Post subject: Re: What is the difference between Spring and Hibernate?
PostPosted: Wed Oct 15, 2008 10:26 pm 
Newbie

Joined: Wed Oct 15, 2008 6:50 am
Posts: 4
pstein wrote:
Sorry for this question but as far as I know Spring is a alternative to Hibernate.

Is this true?

What is the difference between Spring and Hibernate?

Is there a comparison article somewhere ?

Peter


I think...
Spring offer Hibernate user a template to use Hibernate easier.
The things Spring done are admin hibernate sessionFactory,get a session ,close a Session.

Spring have no orm solutions.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 16, 2008 2:20 am 
Newbie

Joined: Thu Oct 16, 2008 1:58 am
Posts: 4
Location: Bangalore
No. Spring is not an alternative for hibernate or vice versa.
Hibernate provides a lot of feasibility while dealing with the database (connections,insertion etc). It provides with ORM (Object Relational Mapping) where in you are able to perform database transaction is the form of objects mapped to corresponding table, using configuration xml files.

Spring, on the other hand is a framework that helps you follow the MVC(Mode View Controller) architecture in an effective and efficient way. It simplifies writing back end code as well as front end(JSP etc) stuff providing clear demarcation simultanoeusly.
You just need to go through Spring and Hibernate separately, you can easily figure out the difference


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 18, 2008 3:46 am 
Beginner
Beginner

Joined: Wed Oct 08, 2008 10:59 am
Posts: 37
rohitt_urs wrote:
No. Spring is not an alternative for hibernate or vice versa.
Hibernate provides a lot of feasibility while dealing with the database (connections,insertion etc). It provides with ORM (Object Relational Mapping) where in you are able to perform database transaction is the form of objects mapped to corresponding table, using configuration xml files.

Spring, on the other hand is a framework that helps you follow the MVC(Mode View Controller) architecture in an effective and efficient way. It simplifies writing back end code as well as front end(JSP etc) stuff providing clear demarcation simultanoeusly.
You just need to go through Spring and Hibernate separately, you can easily figure out the difference


So I can use Spring without Hibernate and Hibernate without Spring? Is this correct?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 18, 2008 5:36 am 
Regular
Regular

Joined: Wed Oct 15, 2008 6:59 am
Posts: 103
Location: Chennai
ya u can use hibernate without spring also..
actually spring is a different framework from hibernate..
hibernate for persistence layer and spring for presentation layer..
i hope u had a idea abt layered approach in software..
they are
1.presentation layer .. in that layer spring,struts,velocity,swing etc., comes
2.Business layer ... here business logic comes
3.database layer.. in that layer hibernate comes

More info search on layered approach in google...

Ciao

_________________
If u feel it will help you, don't forget to rate me....


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 18, 2008 5:38 am 
Regular
Regular

Joined: Wed Oct 15, 2008 6:59 am
Posts: 103
Location: Chennai
ya u can use hibernate without spring also..
actually spring is a different framework from hibernate..
hibernate for persistence layer and spring for presentation layer..
i hope u had a idea abt layered approach in software..
they are
1.presentation layer .. in that layer spring,struts,velocity,swing etc., comes
2.Business layer ... here business logic comes
3.database layer.. in that layer hibernate comes

More info search on layered approach in google...

Ciao

_________________
If u feel it will help you, don't forget to rate me....


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 18, 2008 5:40 am 
Regular
Regular

Joined: Wed Oct 15, 2008 6:59 am
Posts: 103
Location: Chennai
ya u can use hibernate without spring also..
actually spring is a different framework from hibernate..
hibernate for persistence layer and spring for presentation layer..
i hope u had a idea abt layered approach in software..
they are
1.presentation layer .. in that layer spring,struts,velocity,swing etc., comes
2.Business layer ... here business logic comes
3.database layer.. in that layer hibernate comes

More info search on layered approach in google...

Ciao

_________________
If u feel it will help you, don't forget to rate me....


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 18, 2008 5:40 am 
Regular
Regular

Joined: Wed Oct 15, 2008 6:59 am
Posts: 103
Location: Chennai
ya u can use hibernate without spring also..
actually spring is a different framework from hibernate..
hibernate for persistence layer and spring for presentation layer..
i hope u had a idea abt layered approach in software..
they are
1.presentation layer .. in that layer spring,struts,velocity,swing etc., comes
2.Business layer ... here business logic comes
3.database layer.. in that layer hibernate comes

More info search on layered approach in google...

Ciao

_________________
If u feel it will help you, don't forget to rate me....


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 18, 2008 5:42 am 
Regular
Regular

Joined: Wed Oct 15, 2008 6:59 am
Posts: 103
Location: Chennai
ya u can use hibernate without spring also..
actually spring is a different framework from hibernate..
hibernate for persistence layer and spring for presentation layer..
i hope u had a idea abt layered approach in software..
they are
1.presentation layer .. in that layer spring,struts,velocity,swing etc., comes
2.Business layer ... here business logic comes
3.database layer.. in that layer hibernate comes

More info search on layered approach in google...

Ciao

_________________
If u feel it will help you, don't forget to rate me....


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 18, 2008 5:43 am 
Regular
Regular

Joined: Wed Oct 15, 2008 6:59 am
Posts: 103
Location: Chennai
ya u can use hibernate without spring also..
actually spring is a different framework from hibernate..
hibernate for persistence layer and spring for presentation layer..
i hope u had a idea abt layered approach in software..
they are
1.presentation layer .. in that layer spring,struts,velocity,swing etc., comes
2.Business layer ... here business logic comes
3.database layer.. in that layer hibernate comes

More info search on layered approach in google...

Ciao

_________________
If u feel it will help you, don't forget to rate me....


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 19, 2008 3:30 am 
Newbie

Joined: Thu Oct 16, 2008 1:58 am
Posts: 4
Location: Bangalore
pstein wrote:
rohitt_urs wrote:
No. Spring is not an alternative for hibernate or vice versa.
Hibernate provides a lot of feasibility while dealing with the database (connections,insertion etc). It provides with ORM (Object Relational Mapping) where in you are able to perform database transaction is the form of objects mapped to corresponding table, using configuration xml files.

Spring, on the other hand is a framework that helps you follow the MVC(Mode View Controller) architecture in an effective and efficient way. It simplifies writing back end code as well as front end(JSP etc) stuff providing clear demarcation simultanoeusly.
You just need to go through Spring and Hibernate separately, you can easily figure out the difference


So I can use Spring without Hibernate and Hibernate without Spring? Is this correct?




Y you can very well do that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 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.