How to set custom Dialect using hibernate-provided DialectResolutionInfo

Hello, we are using custom dialects using a minimum DB version, but we would like to use the DB version resolution provided by hibernate.

Which would be the simplest way to provide our own dialects but making use of the DialectResolutionInfo provided by hibernate?

Thanks in advance

I just found that adding a constructor with DatabaseVersion parameter to my configured dialects is enough.