[#3702] Add Configuration.family() for convenience and API consistency
This commit is contained in:
parent
56a07b060b
commit
d70cee4dad
@ -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.
|
||||
*/
|
||||
|
||||
@ -717,6 +717,14 @@ public class DefaultConfiguration implements Configuration {
|
||||
return dialect;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public final SQLDialect family() {
|
||||
return dialect.family();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user