This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Grouping oprations using HibernateDaoSupport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Grouping oprations using HibernateDaoSupport" Watch "Grouping oprations using HibernateDaoSupport" New topic

Grouping oprations using HibernateDaoSupport

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

I'm using Spring's HibernateDaoSupport in my application.
If I want to group some operation together like this (inside a single transaction):

How to code this method using HibernateDaoSupport ?

So, if my application uses declerative Spring transaction management (and sets the propagation behavior), every thing will be Ok ? or I have to provide my class with PlatformTransactionManager?
Arun Kumarr
Ranch Hand

Joined: May 16, 2005
Posts: 659

You can use Spring's declarative transaction management. Works fine for me.

See sample Code.

you can in fact replace the * with your method name, say "placeOrder" if you want to have transactions wrapped only for calls made within that method.
[ June 04, 2006: Message edited by: Arun Kumarr ]

If you are not laughing at yourself, then you just didn't get the joke.
I agree. Here's the link:
subject: Grouping oprations using HibernateDaoSupport
It's not a secret anymore!