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 3e08ff044b..03e98ad9dd 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/DialectDelegateWrapper.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/DialectDelegateWrapper.java @@ -108,14 +108,22 @@ public class DialectDelegateWrapper extends Dialect { this.wrapped = Objects.requireNonNull( wrapped ); } + //can't be overriden because of how Dialects get initialized: see constructor of parent @Override - public void checkVersion() { - wrapped.checkVersion(); + protected final void checkVersion() { + //intentionally empty: this is used by the super constructor (yuk) } + //can't be overriden because of how Dialects get initialized: see constructor of parent @Override - public void initDefaultProperties() { - wrapped.initDefaultProperties(); + protected final void registerDefaultKeywords() { + //intentionally empty: this is used by the super constructor (yuk) + } + + //can't be overriden because of how Dialects get initialized: see constructor of parent + @Override + protected final void initDefaultProperties() { + //intentionally empty: this is used by the super constructor (yuk) } @Override @@ -133,11 +141,6 @@ public class DialectDelegateWrapper extends Dialect { return wrapped.castType( sqlTypeCode ); } - @Override - public void registerDefaultKeywords() { - wrapped.registerDefaultKeywords(); - } - @Override public void registerKeywords(DialectResolutionInfo info) { wrapped.registerKeywords( info );