public class DialectVersionEvent extends AbstractEvent
DialectVersionEvent indicates that the current application
is using a Hibernate Dialect which does not match the underlying database server version.Event.Priority| Constructor and Description |
|---|
DialectVersionEvent(String currentDialect,
String suggestedDialect)
Instantiate a
DialectVersionEvent using the provided Dialect
objects only. |
DialectVersionEvent(String currentDialect,
String suggestedDialect,
String databaseName,
int databaseMajorVersion,
int databaseMinorVersion)
Instantiate a
DialectVersionEvent using the provided Dialect
objects as well as the database metadata. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentDialect()
Get the current Hibernate
Dialect. |
Integer |
getDatabaseMajorVersion()
Get underlying database major version.
|
Integer |
getDatabaseMinorVersion()
Get underlying database minor version.
|
String |
getDatabaseName()
Get the underlying database name.
|
String |
getDescription()
|
Event.Priority |
getPriority()
Get the
Event.Priority of this Event |
String |
getSuggestedDialect()
Get the suggested Hibernate
Dialect. |
getInfoUrlpublic DialectVersionEvent(String currentDialect, String suggestedDialect, String databaseName, int databaseMajorVersion, int databaseMinorVersion)
DialectVersionEvent using the provided Dialect
objects as well as the database metadata.currentDialect - current Hibernate DialectsuggestedDialect - suggested Hibernate DialectdatabaseName - underlying database namedatabaseMajorVersion - underlying database major versiondatabaseMinorVersion - underlying database minor versionpublic DialectVersionEvent(String currentDialect, String suggestedDialect)
DialectVersionEvent using the provided Dialect
objects only.currentDialect - current Hibernate DialectsuggestedDialect - suggested Hibernate Dialectpublic String getCurrentDialect()
Dialect.Dialectpublic String getSuggestedDialect()
Dialect.Dialectpublic String getDatabaseName()
public Integer getDatabaseMajorVersion()
public Integer getDatabaseMinorVersion()
public Event.Priority getPriority()
Event.Priority of this EventEvent.Priority of this EventCopyright © 2026. All rights reserved.