Solved

with  Hibernate 3.0.1 Spring do not need template

Posted on 2011-09-10
1
331 Views
Last Modified: 2012-05-12
I was reading
With the Hibernate 3.0.1, Spring can manage the transactions and session management across the application without the template.   Only thing you don't get without Hibernate template is Exception translation..


I was not clear on how spring manages  transactions and session management without template. Are they referring about JDBCTemplate. I was not clear on this topic. Do they mean spring 3.0 instead of hibernate 3.0.1. Thanks in advnace
0
Comment
Question by:gudii9
1 Comment
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 36519324
Hi.

They are referring to templates like JdbcTemplate, HibernateTemplate, etc. there I believe; therefore, Yes. And they do mean Hibernate 3.0.1. In Spring 1.0 you could synchronize transactions across an application. An analogy is you have a Database Connection (Hibernate) and a Connection Manager (Spring). To make this function, Spring used templates for Hibernate. With Spring 2.0, you can apparently do this without templates when combined with Hibernate 3.0.1.

The question is should you. (this reference may help clear up your doubt)

Kevin
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

770 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