[#3702] Add Configuration.family() for convenience and API consistency

This commit is contained in:
Lukas Eder 2014-10-20 12:13:13 +02:00
parent 56a07b060b
commit d70cee4dad
2 changed files with 13 additions and 0 deletions

View File

@ -227,6 +227,11 @@ public interface Configuration extends Serializable {
*/
SQLDialect dialect();
/**
* Retrieve the family of the configured dialect.
*/
SQLDialect family();
/**
* Retrieve the runtime configuration settings.
*/

View File

@ -717,6 +717,14 @@ public class DefaultConfiguration implements Configuration {
return dialect;
}
/**
* {@inheritDoc}
*/
@Override
public final SQLDialect family() {
return dialect.family();
}
/**
* {@inheritDoc}
*/