Hibernate封装的这个方法怎样加sql语句?

来源:互联网 发布:南宁java招聘 编辑:程序博客网 时间:2024/05/16 09:37
public List findByExample(VcxZyfymx instance) {
        log.debug("finding VcxZyfymx instance by example");
        try {
            List results = getHibernateTemplate().findByExample(instance);
            log.debug("find by example successful, result size: "
                    + results.size());
            return results;
        } catch (RuntimeException re) {
            log.error("find by example failed", re);
            throw re;
        }
    }

Hibernate封装的这个方法怎样加sql语句?
0 0
原创粉丝点击