Java 类org.hibernate.hql.internal.QueryExecutionRequestException 实例源码

项目:lams    文件:QueryTranslatorImpl.java   
private void errorIfDML() throws HibernateException {
    if ( sqlAst.needsExecutor() ) {
        throw new QueryExecutionRequestException( "Not supported for DML operations", hql );
    }
}
项目:lams    文件:QueryTranslatorImpl.java   
private void errorIfSelect() throws HibernateException {
    if ( !sqlAst.needsExecutor() ) {
        throw new QueryExecutionRequestException( "Not supported for select queries", hql );
    }
}