File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 661

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!