liaojie970
From  Person this Where this.name like \'%abc%\'
@SuppressWarnings("unchecked")
    @Override
    public List<ReportLog> query(String type) {
        return getSession().createQuery(" from Person this WHERE this.name like :type ")
                .setParameter("type", "%"+type+"%")
                .list();
    }

 

分类:

技术点:

相关文章: