gudii9
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
ASKER
>>it does not provide those higher level services
then what kind of lower services hibernate provide. please advise
then what kind of lower services hibernate provide. please advise
it handle the mapping between the database and your objects
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
got you . so all other services we need to implement through spring right. please advise
correct
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.