Commit 46e43317 authored by 季圣华's avatar 季圣华
Browse files

更新系统的lib库,去掉多余的包

parent 3b1c14a2
...@@ -78,19 +78,19 @@ public class BaseDAO<T> extends HibernateDaoSupport implements BaseIDAO<T> ...@@ -78,19 +78,19 @@ public class BaseDAO<T> extends HibernateDaoSupport implements BaseIDAO<T>
pageUtil.setPageList(query.list()); pageUtil.setPageList(query.list());
} }
@SuppressWarnings("unchecked") // @SuppressWarnings("unchecked")
@Override // @Override
public List<T> find(Map<String, Object> conditon)throws DataAccessException // public List<T> find(Map<String, Object> conditon)throws DataAccessException
{ // {
return this.getHibernateTemplate().find(" from " + getEntityClass().getName() + " where 1=1 "+ SearchConditionUtil.getCondition(conditon)); // return this.getHibernateTemplate().find(" from " + getEntityClass().getName() + " where 1=1 "+ SearchConditionUtil.getCondition(conditon));
} // }
@SuppressWarnings("unchecked") // @SuppressWarnings("unchecked")
@Override // @Override
public List<T> find(String hql) throws DataAccessException // public List<T> find(String hql) throws DataAccessException
{ // {
return this.getHibernateTemplate().find(" from " + getEntityClass().getName() + " where 1=1 "+ hql); // return this.getHibernateTemplate().find(" from " + getEntityClass().getName() + " where 1=1 "+ hql);
} // }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@Override @Override
......
...@@ -77,14 +77,14 @@ public interface BaseIDAO<T> ...@@ -77,14 +77,14 @@ public interface BaseIDAO<T>
* @param conditon 查询条件 * @param conditon 查询条件
* @return 查询列表数据 * @return 查询列表数据
*/ */
List<T> find(Map<String,Object> conditon)throws DataAccessException; // List<T> find(Map<String,Object> conditon)throws DataAccessException;
/** /**
* 根据hql查询 --没有分页信息 * 根据hql查询 --没有分页信息
* @param hql hibernate查询 * @param hql hibernate查询
* @return 查询列表数据 * @return 查询列表数据
*/ */
List<T> find(String hql)throws DataAccessException; // List<T> find(String hql)throws DataAccessException;
/** /**
* 根据搜索条件查询--分页 * 根据搜索条件查询--分页
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment