mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
Allow access to sqlBuffer via @Internal method
This commit is contained in:
parent
d16482697c
commit
f50cbce7ba
@ -24,6 +24,7 @@
|
|||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
|
import org.hibernate.Internal;
|
||||||
import org.hibernate.LockMode;
|
import org.hibernate.LockMode;
|
||||||
import org.hibernate.LockOptions;
|
import org.hibernate.LockOptions;
|
||||||
import org.hibernate.QueryException;
|
import org.hibernate.QueryException;
|
||||||
@ -446,6 +447,12 @@ public String getSql() {
|
|||||||
return sqlBuffer.toString();
|
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() {
|
protected void cleanup() {
|
||||||
if ( lazySessionWrapperOptions != null ) {
|
if ( lazySessionWrapperOptions != null ) {
|
||||||
lazySessionWrapperOptions.cleanup();
|
lazySessionWrapperOptions.cleanup();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user