Package org.hibernate.internal.log
Interface DeprecationLogger
- All Superinterfaces:
org.jboss.logging.BasicLogger
@MessageLogger(projectCode="HHH")
@ValidIdRange(min=90000001,
max=90001000)
public interface DeprecationLogger
extends org.jboss.logging.BasicLogger
Class to consolidate logging about usage of deprecated features.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
automaticDialect
(String dialect) void
deprecatedAnnotation
(Class<? extends Annotation> annotationType, String locationDescription) void
void
deprecatedDialect
(String dialect) void
deprecatedDialect
(String dialect, String replacement) void
void
void
deprecatedNativeQueryColonEscaping
(String oldOperator, String newOperator) void
void
deprecatedSetting
(String oldSettingName, String newSettingName) void
deprecatedSettingForRemoval
(String settingName, String defaultValue) Different fromdeprecatedSetting(java.lang.String, java.lang.String)
in that sometimes there is no direct alternativevoid
deprecatedSettingNoReplacement
(String settingName) Different fromdeprecatedSetting(java.lang.String, java.lang.String)
in that sometimes there is no direct alternativevoid
logDeprecatedHbmXmlProcessing
(SourceType sourceType, String name) Different fromdeprecatedSetting(java.lang.String, java.lang.String)
in that sometimes there is no direct alternativevoid
Log a warning about an attempt to specify unsupported NamingStrategyvoid
Log a warning about an attempt to specify unsupported NamingStrategyvoid
logDeprecatedTransactionFactorySetting
(String legacySettingName, String updatedSettingName) void
void
logDeprecationOfNonNamedIdAttribute
(String entityName) void
recognizedObsoleteHibernateNamespace
(String oldHibernateNamespace, String hibernateNamespace) Methods inherited from interface org.jboss.logging.BasicLogger
debug, debug, debug, debug, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugf, debugv, debugv, debugv, debugv, debugv, debugv, debugv, debugv, error, error, error, error, errorf, errorf, errorf, errorf, errorf, errorf, errorf, errorf, errorv, errorv, errorv, errorv, errorv, errorv, errorv, errorv, fatal, fatal, fatal, fatal, fatalf, fatalf, fatalf, fatalf, fatalf, fatalf, fatalf, fatalf, fatalv, fatalv, fatalv, fatalv, fatalv, fatalv, fatalv, fatalv, info, info, info, info, infof, infof, infof, infof, infof, infof, infof, infof, infov, infov, infov, infov, infov, infov, infov, infov, isDebugEnabled, isEnabled, isInfoEnabled, isTraceEnabled, log, log, log, log, logf, logf, logf, logf, logf, logf, logf, logf, logf, logf, logf, logf, logv, logv, logv, logv, logv, logv, logv, logv, logv, logv, logv, logv, trace, trace, trace, trace, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracef, tracev, tracev, tracev, tracev, tracev, tracev, tracev, tracev, warn, warn, warn, warn, warnf, warnf, warnf, warnf, warnf, warnf, warnf, warnf, warnv, warnv, warnv, warnv, warnv, warnv, warnv, warnv
-
Field Details
-
CATEGORY
- See Also:
-
DEPRECATION_LOGGER
-
-
Method Details
-
logDeprecationOfEmbedXmlSupport
@LogMessage(level=WARN) @Message(value="embed-xml attributes were intended to be used for DOM4J entity mode. Since that entity mode has been removed, embed-xml attributes are no longer supported and should be removed from mappings.", id=90000004) void logDeprecationOfEmbedXmlSupport() -
logDeprecationOfNonNamedIdAttribute
@LogMessage(level=WARN) @Message(value="Defining an entity [%s] with no physical id attribute is no longer supported; please map the identifier to a physical entity attribute", id=90000005) void logDeprecationOfNonNamedIdAttribute(String entityName) -
logDeprecatedNamingStrategyArgument
@LogMessage(level=WARN) @Message(value="Attempted to specify unsupported NamingStrategy via command-line argument [--naming]. NamingStrategy has been removed in favor of the split ImplicitNamingStrategy and PhysicalNamingStrategy; use [--implicit-naming] or [--physical-naming], respectively, instead.", id=90000007) void logDeprecatedNamingStrategyArgument()Log a warning about an attempt to specify unsupported NamingStrategy -
logDeprecatedNamingStrategyAntArgument
@LogMessage(level=WARN) @Message(value="Attempted to specify unsupported NamingStrategy via Ant task argument. NamingStrategy has been removed in favor of the split ImplicitNamingStrategy and PhysicalNamingStrategy.", id=90000008) void logDeprecatedNamingStrategyAntArgument()Log a warning about an attempt to specify unsupported NamingStrategy -
deprecatedManyToManyOuterJoin
@LogMessage(level=WARN) @Message(value="The outer-join attribute on <many-to-many> has been deprecated. Instead of outer-join=\"false\", use lazy=\"extra\" with <map>, <set>, <bag>, <idbag>, or <list>, which will only initialize entities (not as a proxy) as needed.", id=90000009) void deprecatedManyToManyOuterJoin() -
deprecatedManyToManyFetch
@LogMessage(level=WARN) @Message(value="The fetch attribute on <many-to-many> has been deprecated. Instead of fetch=\"select\", use lazy=\"extra\" with <map>, <set>, <bag>, <idbag>, or <list>, which will only initialize entities (not as a proxy) as needed.", id=90000010) void deprecatedManyToManyFetch() -
recognizedObsoleteHibernateNamespace
-
logDeprecatedTransactionFactorySetting
-
deprecatedSetting
-
automaticDialect
@LogMessage(level=WARN) @Message(value="%s does not need to be specified explicitly using \'hibernate.dialect\' (remove the property setting and it will be selected by default)", id=90000025) void automaticDialect(String dialect) -
deprecatedDialect
@LogMessage(level=WARN) @Message(value="%s has been deprecated", id=90000026) void deprecatedDialect(String dialect) -
deprecatedDialect
-
logDeprecatedHbmXmlProcessing
@LogMessage(level=WARN) @Message(id=90000028, value="Support for `<hibernate-mappings/>` is deprecated [%s : %s]; migrate to orm.xml or mapping.xml, or enable `hibernate.transform_hbm_xml.enabled` for on the fly transformation") void logDeprecatedHbmXmlProcessing(SourceType sourceType, String name) Different fromdeprecatedSetting(java.lang.String, java.lang.String)
in that sometimes there is no direct alternative -
deprecatedSettingForRemoval
@LogMessage(level=WARN) @Message(id=90000029, value="The [%s] configuration is deprecated and will be removed. Set the value to [%s] to get rid of this warning") void deprecatedSettingForRemoval(String settingName, String defaultValue) Different fromdeprecatedSetting(java.lang.String, java.lang.String)
in that sometimes there is no direct alternative -
deprecatedSettingNoReplacement
@LogMessage(level=WARN) @Message(id=90000030, value="The [%s] configuration is deprecated and will be removed.") void deprecatedSettingNoReplacement(String settingName) Different fromdeprecatedSetting(java.lang.String, java.lang.String)
in that sometimes there is no direct alternative -
deprecatedNativeQueryColonEscaping
-
deprecatedArrayContainsWithArray
@LogMessage(level=WARN) @Message(id=90000032, value="The support for passing arrays to array_contains() is deprecated and will be removed. Use array_includes() instead.") void deprecatedArrayContainsWithArray() -
deprecatedAnnotation
@LogMessage(level=WARN) @Message(id=90000033, value="Encountered use of deprecated annotation [%s] at %s.") void deprecatedAnnotation(Class<? extends Annotation> annotationType, String locationDescription) -
deprecatedRefreshLockDetachedEntity
@LogMessage(level=WARN) @Message(id=90000034, value="Refreshing/locking detached entities is no longer allowed.") void deprecatedRefreshLockDetachedEntity()
-