HHH-16228 Allow Dialect wrapper to expose the wrapped instance

This commit is contained in:
Sanne Grinovero 2023-02-24 22:04:09 +00:00
parent 2ab68f2164
commit 47f13f0cdb
1 changed files with 8 additions and 0 deletions

View File

@ -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() {