关于在Spring下 使用HQL 语句模糊查询的实现方法

  
注意:"%" + condition + "%" ,condition 是 查询条件

 public List findListByConditions(String condition) throws Exception
    {
        List l=new ArrayList();
        String hql="from Jobtsysinfo as p where  p.title like ?  ";
        String[] objs=new String[1];
       
        objs[0]="%" + condition + "%";
 
    }
posted @ 2007-10-16 17:35  王兴2008-偶想家了!  阅读(2420)  评论(0编辑  收藏  举报