import org.hibernate.engine.SessionFactoryImplementor;
import org.hibernate.hql.ast.QueryTranslatorImpl;
QueryTranslatorImpl queryTranslator=new QueryTranslatorImpl(hql,hql,Collections.EMPTY_MAP,(SessionFactoryImplementor)getSessionFactory());
queryTranslator.compile(Collections.EMPTY_MAP, false);
queryTranslator.getSQLString();
Hibernate3中将指定的HQL语句转换成SQL语句(转)
最新推荐文章于 2019-02-19 11:52:54 发布