-
Aug 2nd, 2006, 04:39 AM
#11
I guess it should be sufficient to have a Dao extending JdbcDaoSupport, wired with the DataSource you also use for building the SessionFactory.
From there you can call getJdbcTemplate().
If inside a transactional context, the Connection of the current hibernate session should then be used by the template.
Regards,
Andreas
-
Aug 22nd, 2012, 04:55 AM
#12
See your tables store engine if you use mysql.I encounter the same issue as you.And i figure out mysql tables stored with mysiam.MyISAM is not support transaction in mysql,but innodb do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules