Hibernate模糊查询

来源:互联网 发布:有win本 还要mac 编辑:程序博客网 时间:2024/05/29 12:18

public ArrayList getproject(String projectName) {
  //查找项目
  return (ArrayList) getHibernateTemplate().find("from Project_Info p where  p.projectName like '%'+?+'%'",projectName);
 }