Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

spring hibernate integration


I was reading folowing lines. And I did not understand clearly.

With the ORM tool doing most
of the actual persistence, Spring provides integration points to these frameworks,
as well as some additional services:
Integrated transaction management
Exception handling
Thread-safe, lightweight template classes
Convenience support classes
Resource management

These services are not taken care by hibernate itself. Please adise.
Any ideas, resources,sample code,links, highly appreciated. thanks in advance.
Avatar of Mick Barry
Mick Barry
Flag of Australia image

When you make a database call theres lots of standard stuff you do that is the same for every requests
For example you get a connnection, create a staement, execute the staement then read the result set.
An ORM takes care of a lot of this for you making it a lot simpler as it all gets looked after for you.

ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

>>>some additional services:
Integrated transaction management
Exception handling
Thread-safe, lightweight template classes
Convenience support classes
Resource management



My question is i thought these additional services provided by hibernate but not spring. But above statement says these additional services provided by spring. please advise
no hiberate is simply an orm tool, it does not provide those higher level services
Avatar of gudii9

ASKER

>>it does not provide those higher level services

then what kind of lower services hibernate provide. please advise
it handle the mapping between the database and your objects
Avatar of gudii9

ASKER

>>it handle the mapping between the database and your objects

got you . so all other services we need to implement through spring right. please advise
correct