mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 14:30:16 +00:00
HHH-14027 Allow the creation of a different QueryLoader
This commit is contained in:
parent
5968044118
commit
d914c8aabc
@ -210,7 +210,7 @@ private synchronized void doCompile(Map replacements, boolean shallow, String co
|
||||
else {
|
||||
// PHASE 3 : Generate the SQL.
|
||||
generate( (QueryNode) sqlAst );
|
||||
queryLoader = new QueryLoader( this, factory, w.getSelectClause() );
|
||||
queryLoader = createQueryLoader( w, factory );
|
||||
}
|
||||
|
||||
compiled = true;
|
||||
@ -245,6 +245,10 @@ private synchronized void doCompile(Map replacements, boolean shallow, String co
|
||||
this.enabledFilters = null;
|
||||
}
|
||||
|
||||
protected QueryLoader createQueryLoader(HqlSqlWalker w, SessionFactoryImplementor factory) {
|
||||
return new QueryLoader( this, factory, w.getSelectClause() );
|
||||
}
|
||||
|
||||
private void generate(AST sqlAst) throws QueryException, RecognitionException {
|
||||
if ( sql == null ) {
|
||||
final SqlGenerator gen = new SqlGenerator( factory );
|
||||
|
Loading…
x
Reference in New Issue
Block a user