hql 转 sql

import org.hibernate.engine.SessionFactoryImplementor;
import org.hibernate.hql.ast.QueryTranslatorImpl;

QueryTranslatorImpl translator = new QueryTranslatorImpl("queryIdentifier", hql, 
    Collections.EMPTY_MAP, (SessionFactoryImplementor) getSessionFactory());
translator.compile(Collections.EMPTY_MAP, false);

translator.getSQLString();
posted @ 2020-04-14 23:52  thinkMIne  阅读(380)  评论(0)    收藏  举报
/*粒子线条,鼠标移动会以鼠标为中心吸附的特效*/