public List findByExample(Class entityClass) {   
    log.debug("finding instance by example");    
    try {    
        Example example = Example.create(entityClass).ignoreCase().enableLike(MatchMode.ANYWHERE);    
        List results = findByExample(example ,entityClass);   
        log.debug("find by example successful, result size: " + results.size()); return results;    
    } catch (RuntimeException re) {    
        log.error("find by example failed", re); throw re;    
    }   
}  
评论
发表评论

您还没有登录,请登录后发表评论

laiseeme
搜索本博客
最近加入圈子
存档
最新评论