Top Description Fields Methods
org.hibernate.internal.log

public Interface DeprecationLogger

extends BasicLogger
Annotations
@MessageLogger
projectCode:HHH
@ValidIdRange
min:90000001
max:90001000
@SubSystemLogging
name:org.hibernate.orm.deprecation
description:Logging related to uses of deprecated features
Imports
org.hibernate.boot.jaxb.SourceType, org.hibernate.cfg.AvailableSettings, org.jboss.logging.BasicLogger, .Logger, org.jboss.logging.annotations.LogMessage, .Message, .MessageLogger, .ValidIdRange

Class to consolidate logging about usage of deprecated features.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final String
public static final DeprecationLogger

Method Summary

Modifier and TypeMethod and Description
public void
public void
connectionProviderClassDeprecated(String providerClassName, String actualProviderClassName)

public void
public void
deprecatedDialect(String dialect, String replacement)

public void
public void
public void
public void
deprecatedSetting(String oldSettingName, String newSettingName)

public void
deprecatedSetting2(String settingName, String alternative)

Different from deprecatedSetting in that sometimes there is no direct alternative

public void
deprecatedSettingForRemoval(String settingName, String defaultValue)

Different from deprecatedSetting in that sometimes there is no direct alternative

public void
deprecatedSettingNoReplacement(String settingName)

Different from deprecatedSetting in that sometimes there is no direct alternative

public void
public void
logDeprecatedHbmXmlProcessing(SourceType sourceType, String name)

Different from deprecatedSetting in that sometimes there is no direct alternative

public void
logDeprecatedNamingStrategyAntArgument()

Log a warning about an attempt to specify unsupported NamingStrategy

public void
logDeprecatedNamingStrategyArgument()

Log a warning about an attempt to specify unsupported NamingStrategy

public void
logDeprecatedTransactionFactorySetting(String legacySettingName, String updatedSettingName)

public void
public void
public void
recognizedObsoleteHibernateNamespace(String oldHibernateNamespace, String hibernateNamespace)

Inherited from org.jboss.logging.BasicLogger:
debugdebugdebugdebugdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugfdebugvdebugvdebugvdebugvdebugvdebugvdebugvdebugverrorerrorerrorerrorerrorferrorferrorferrorferrorferrorferrorferrorferrorverrorverrorverrorverrorverrorverrorverrorvfatalfatalfatalfatalfatalffatalffatalffatalffatalffatalffatalffatalffatalvfatalvfatalvfatalvfatalvfatalvfatalvfatalvinfoinfoinfoinfoinfofinfofinfofinfofinfofinfofinfofinfofinfovinfovinfovinfovinfovinfovinfovinfovisDebugEnabledisEnabledisInfoEnabledisTraceEnabledlogloglogloglogflogflogflogflogflogflogflogflogflogflogflogflogvlogvlogvlogvlogvlogvlogvlogvlogvlogvlogvlogvtracetracetracetracetraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftraceftracevtracevtracevtracevtracevtracevtracevtracevwarnwarnwarnwarnwarnfwarnfwarnfwarnfwarnfwarnfwarnfwarnfwarnvwarnvwarnvwarnvwarnvwarnvwarnvwarnv

Field Detail

CATEGORYback to summary
public static final String CATEGORY
DEPRECATION_LOGGERback to summary
public static final DeprecationLogger DEPRECATION_LOGGER

Method Detail

automaticDialectback to summary
public void automaticDialect(String dialect)
Annotations
@LogMessage
level:WARN
@Message:%s does not need to be specified explicitly using \'hibernate.dialect\' (remove the property setting and it will be selected by default)
id:90000025
connectionProviderClassDeprecatedback to summary
public void connectionProviderClassDeprecated(String providerClassName, String actualProviderClassName)
Annotations
@LogMessage
level:WARN
@Message:Named ConnectionProvider [%s] has been deprecated in favor of %s; that provider will be used instead. Update your settings
id:90000013
deprecatedDialectback to summary
public void deprecatedDialect(String dialect)
Annotations
@LogMessage
level:WARN
@Message:%s has been deprecated
id:90000026
deprecatedDialectback to summary
public void deprecatedDialect(String dialect, String replacement)
Annotations
@LogMessage
level:WARN
@Message:%s has been deprecated; use %s instead
id:90000026
deprecatedManyToManyFetchback to summary
public void deprecatedManyToManyFetch()
Annotations
@LogMessage
level:WARN
@Message:The fetch attribute on has been deprecated. Instead of fetch="select", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed.
id:90000010
deprecatedManyToManyOuterJoinback to summary
public void deprecatedManyToManyOuterJoin()
Annotations
@LogMessage
level:WARN
@Message:The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed.
id:90000009
deprecatedSequenceGeneratorback to summary
public void deprecatedSequenceGenerator(String generatorImpl)
Annotations
@LogMessage
level:WARN
@Message:Found use of deprecated [%s] sequence-based id generator; use org.hibernate.id.enhanced.SequenceStyleGenerator instead. See Hibernate Domain Model Mapping Guide for details.
id:90000014
deprecatedSettingback to summary
public void deprecatedSetting(String oldSettingName, String newSettingName)
Annotations
@LogMessage
level:WARN
@Message:Encountered deprecated setting [%s], use [%s] instead
id:90000021
deprecatedSetting2back to summary
public void deprecatedSetting2(String settingName, String alternative)

Different from deprecatedSetting in that sometimes there is no direct alternative

Annotations
@LogMessage
level:WARN
@Message:Encountered deprecated setting [%s]; instead %s
id:90000027
deprecatedSettingForRemovalback to summary
public void deprecatedSettingForRemoval(String settingName, String defaultValue)

Different from deprecatedSetting in that sometimes there is no direct alternative

Annotations
@LogMessage
level:WARN
@Message:The [%s] configuration is deprecated and will be removed. Set the value to [%s] to get rid of this warning
id:90000029
deprecatedSettingNoReplacementback to summary
public void deprecatedSettingNoReplacement(String settingName)

Different from deprecatedSetting in that sometimes there is no direct alternative

Annotations
@LogMessage
level:WARN
@Message:The [%s] configuration is deprecated and will be removed.
id:90000030
deprecatedTableGeneratorback to summary
public void deprecatedTableGenerator(String generatorImpl)
Annotations
@LogMessage
level:WARN
@Message:Found use of deprecated [%s] table-based id generator; use org.hibernate.id.enhanced.TableGenerator instead. See Hibernate Domain Model Mapping Guide for details.
id:90000015
logDeprecatedHbmXmlProcessingback to summary
public void logDeprecatedHbmXmlProcessing(SourceType sourceType, String name)

Different from deprecatedSetting in that sometimes there is no direct alternative

Annotations
@LogMessage
level:WARN
@Message:Support for `` is deprecated [%s : %s]; migrate to orm.xml or mapping.xml, or enable `hibernate.transform_hbm_xml.enabled` for on the fly transformation
id:90000028
logDeprecatedNamingStrategyAntArgumentback to summary
public void logDeprecatedNamingStrategyAntArgument()

Log a warning about an attempt to specify unsupported NamingStrategy

Annotations
@LogMessage
level:WARN
@Message:Attempted to specify unsupported NamingStrategy via Ant task argument. NamingStrategy has been removed in favor of the split ImplicitNamingStrategy and PhysicalNamingStrategy.
id:90000008
logDeprecatedNamingStrategyArgumentback to summary
public void logDeprecatedNamingStrategyArgument()

Log a warning about an attempt to specify unsupported NamingStrategy

Annotations
@LogMessage
level:WARN
@Message: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
logDeprecatedTransactionFactorySettingback to summary
public void logDeprecatedTransactionFactorySetting(String legacySettingName, String updatedSettingName)
Annotations
@LogMessage
level:WARN
@Message:Found use of deprecated transaction factory setting [%s]; use the new TransactionCoordinatorBuilder settings [%s] instead
id:90000018
logDeprecationOfEmbedXmlSupportback to summary
public void logDeprecationOfEmbedXmlSupport()
Annotations
@LogMessage
level:WARN
@Message: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
logDeprecationOfNonNamedIdAttributeback to summary
public void logDeprecationOfNonNamedIdAttribute(String entityName)
Annotations
@LogMessage
level:WARN
@Message:Defining an entity [%s] with no physical id attribute is no longer supported; please map the identifier to a physical entity attribute
id:90000005
recognizedObsoleteHibernateNamespaceback to summary
public void recognizedObsoleteHibernateNamespace(String oldHibernateNamespace, String hibernateNamespace)
Annotations
@LogMessage
level:WARN
@Message:Recognized obsolete hibernate namespace %s. Use namespace %s instead. Support for obsolete DTD/XSD namespaces may be removed at any time.
id:90000012