diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/DialectDelegateWrapper.java b/hibernate-core/src/main/java/org/hibernate/dialect/DialectDelegateWrapper.java index 03e98ad9dd..2b384f80d4 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/DialectDelegateWrapper.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/DialectDelegateWrapper.java @@ -108,6 +108,14 @@ public class DialectDelegateWrapper extends Dialect { this.wrapped = Objects.requireNonNull( wrapped ); } + /** + * Exposed so to allow code needing to know the implementation. + * @return the wrapped Dialect + */ + public Dialect getWrappedDialect() { + return wrapped; + } + //can't be overriden because of how Dialects get initialized: see constructor of parent @Override protected final void checkVersion() {