Uploaded image for project: 'Hibernate ORM'
  1. HHH-13139

Restore StandardDialectResolver as non-final

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects versions: 5.4.0.CR2
    • Fix versions: None
    • Components: hibernate-core
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      Mark StandardDialectResolver as final break backward compatibility, Developers can customize dialect resolver base on standard implementation, for official release doesn't resolved latest dialect, or customized dialect.

      public class MyDialectResolver extends StandardDialectResolver {
      
      	private static final long serialVersionUID = -3451798629900051614L;
      
      	@Override
      	public Dialect resolveDialect(DialectResolutionInfo info) {
      		DatabaseProduct database = DatabaseProduct.parse(info.getDatabaseName());
      		int majorVersion = info.getDatabaseMajorVersion();
      		if (database == DatabaseProduct.MYSQL) {
      			if (majorVersion == 8)
      				return new MySQL8Dialect();
      		}
      		return super.resolveDialect(info);
      	}
      }
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: