?
Solved

spring hibernate integration

Posted on 2011-05-06
8
Medium Priority
?
353 Views
Last Modified: 2012-05-11

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.
0
Comment
Question by:gudii9
  • 5
  • 3
8 Comments
 
LVL 92

Expert Comment

by:objects
ID: 35710958
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.

0
 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 35710960
Also as it allows you to define how a row in the database maps to objects you can request an object from the database directly without need to specify any sql. The orm generates the sql for you based on the mappings defined
0
 
LVL 7

Author Comment

by:gudii9
ID: 35725131
>>>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
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 92

Expert Comment

by:objects
ID: 35725148
no hiberate is simply an orm tool, it does not provide those higher level services
0
 
LVL 7

Author Comment

by:gudii9
ID: 35725171
>>it does not provide those higher level services

then what kind of lower services hibernate provide. please advise
0
 
LVL 92

Expert Comment

by:objects
ID: 35725179
it handle the mapping between the database and your objects
0
 
LVL 7

Author Comment

by:gudii9
ID: 35725187
>>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
0
 
LVL 92

Expert Comment

by:objects
ID: 35725256
correct
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month17 days, 4 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question