Пример #1
0
 @SuppressWarnings("unchecked")
 public List<WebSearchInfo> findsearchInfoByNameZhTw(String nameZhTw, WebEmployee webEmployee) {
   String hql = daoimpl.getHql("WebSearchInfo", webEmployee);
   hql += "and isDataEffid=1 and nameZhTw like '%" + nameZhTw + "%'";
   Query query = this.getSession().createQuery(hql);
   List<WebSearchInfo> retList = query.list();
   return retList;
 }
Пример #2
0
 @SuppressWarnings("unchecked")
 public List<WebSearchInfo> findSearchInfoAll(WebEmployee webEmployee) {
   String hql = daoimpl.getHql("WebSearchInfo", webEmployee);
   hql += " and isDataEffid=1 ";
   Query query = this.getSession().createQuery(hql);
   List<WebSearchInfo> retList = query.list();
   return retList;
 }