Allow access to sqlBuffer via @Internal method

This commit is contained in:
Christian Beikov 2023-06-13 18:21:30 +02:00
parent 28bb577838
commit 6034d357bb
1 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Supplier;
import org.hibernate.Internal;
import org.hibernate.LockMode;
import org.hibernate.LockOptions;
import org.hibernate.QueryException;
@ -442,6 +443,12 @@ public abstract class AbstractSqlAstTranslator<T extends JdbcOperation> implemen
return sqlBuffer.toString();
}
// For Blaze-Persistence until its function rendering code doesn't depend on SQL fragments anymore
@Internal
public StringBuilder getSqlBuffer() {
return sqlBuffer;
}
protected void cleanup() {
if ( lazySessionWrapperOptions != null ) {
lazySessionWrapperOptions.cleanup();