KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > spring > bean > orm > hibernate > HibernateDAO


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest.spring.bean.orm.hibernate;
5
6 import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
7 import org.springframework.transaction.support.AbstractPlatformTransactionManager;
8
9 public class HibernateDAO extends HibernateDaoSupport {
10   AbstractPlatformTransactionManager transactionManager = null;
11
12   public AbstractPlatformTransactionManager getTransactionManager() {
13     return transactionManager;
14   }
15
16   public void setTransactionManager(AbstractPlatformTransactionManager transactionManager) {
17     this.transactionManager = transactionManager;
18   }
19 }
20
Popular Tags