title: No Dialect mapping for JDBC type: 2003, but it is registered
body: <p>How to fix this error?</p>
  <p><strong>No Dialect mapping for JDBC type: 2003</strong></p>
  <p>Here is my dialect class - child entity does not have fields, related to the error</p>
  <pre><code>public class CustomPostgreSQL10Dialect extends PostgreSQL10Dialect {
      public CustomPostgreSQL10Dialect() {
          super();
          this.registerHibernateType(2003, &quot;sql_array_type&quot;);
      }
  }
  </code></pre>
  <p>and single properties file</p>
  <pre><code>spring.jpa.database-platform=io.alphaminds.base.hibernate.dialect.CustomPostgreSQL10Dialect
  spring.jpa.hibernate.dialect=io.alphaminds.base.hibernate.dialect.CustomPostgreSQL10Dialect
  </code></pre>
  <p>Spring 2.5.2</p>
  <p>And my entity</p>
  <pre><code>@TypeDef(
          name = &quot;enum-array&quot;,
          typeClass = EnumArrayType.class
  )
  @FieldDefaults(level = AccessLevel.PRIVATE)
  public abstract class Contact extends AuditedEntity {
      //...
      @Type(type = &quot;enum-array&quot;, parameters = @org.hibernate.annotations.Parameter(
              name = &quot;sql_array_type&quot;, value = &quot;messengers&quot;))
      MessengerType[] messengers;
  }
  </code></pre>