| | |
| | | |
| | | package com.qxueyou.scc.base.dao; |
| | | |
| | | import java.beans.Transient; |
| | | import java.io.Serializable; |
| | | import java.math.BigInteger; |
| | | import java.util.ArrayList; |
| | |
| | | |
| | | import com.qxueyou.scc.base.model.Pager; |
| | | import com.qxueyou.scc.base.model.Result; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | /** |
| | | * 基础DAO类,自动注入sessionFactory |
| | |
| | | * @since JDK1.6 |
| | | * @history 2010-07-28 夏德虎 新建 |
| | | */ |
| | | @Transactional(readOnly=false) |
| | | public class BaseDAO extends HibernateDaoSupport { |
| | | |
| | | /** 注释 rawtypes */ |
| | |
| | | /** |
| | | * 保存或更新对象 |
| | | */ |
| | | @Transactional(readOnly = false) |
| | | public void saveOrUpdate(Object obj) { |
| | | this.getHibernateTemplate().saveOrUpdate(obj); |
| | | } |