Top Description Fields Methods
org.hibernate.internal.log

public Interface DeprecationLogger

extends BasicLogger
Annotations
@MessageLogger
projectCode:HHH
@ValidIdRange
min:90000001
max:90001000
Imports
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
connectionProviderClassDeprecated(String providerClassName, String actualProviderClassName)

public void
public void
public void
deprecatedJaccUsage(String jaccEnabled, String jaccContextId, String jaccPrefix)

public void
public void
public void
deprecatedJmxSupport(String jmxEnabledSetting)

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

public void
public void
logDeprecatedInstrumentTask(Class<T> taskClass, Class<T> newTaskClass)

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
logDeprecatedNamingStrategySetting(String
- The old setting that indicates the NamingStrategy to use
setting
,
String
- The new setting that indicates the ImplicitNamingStrategy to use
implicitInstead
,
String
- The new setting that indicates the PhysicalNamingStrategy to use
physicalInstead
)

Log a warning about an attempt to specify no-longer-supported NamingStrategy

public void
logDeprecatedScannerSetting()

Log about usage of deprecated Scanner setting

public void
logDeprecatedTransactionFactorySetting(String legacySettingName, String updatedSettingName)

public void
public void
public void
logDeprecationOfDomEntityModeSupport()

Log message indicating the use of features that were only useful for DOM4J EntityMode, which was removed a long time ago.

public void
public void
logDeprecationOfMultipleEntityModeSupport()

Log message indicating the use of multiple EntityModes for a single entity.

public void
public void
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

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
deprecatedComponentMappingback to summary
public void deprecatedComponentMapping(String name)
Annotations
@LogMessage
level:WARN
@Message:Encountered multiple component mappings for the same java class [%s] with different property mappings. This is deprecated and will be removed in a future version. Every property mapping combination should have its own java class
id:90000025
deprecatedJaccCfgXmlSettingsback to summary
public void deprecatedJaccCfgXmlSettings()
Annotations
@LogMessage
level:WARN
@Message:JACC settings encountered in hibernate `cfg.xml` file. JACC integration is deprecated and will be removed in version 6.0
id:90000027
deprecatedJaccUsageback to summary
public void deprecatedJaccUsage(String jaccEnabled, String jaccContextId, String jaccPrefix)
Annotations
@LogMessage
level:WARN
@Message:JACC integration was enabled. Support for JACC integration will be removed in version 6.0. Use of`%s`, `%s` or `%s` settings is discouraged
id:90000026
deprecatedJmxBeanRegistrationback to summary
public void deprecatedJmxBeanRegistration(String name)
Annotations
@LogMessage
level:WARN
@Message:MBean was registered with JMX support (`%s`). JMX support is scheduled for removal in 6.0
id:90000030
deprecatedJmxManageableServiceRegistrationback to summary
public void deprecatedJmxManageableServiceRegistration(String jmxEnabledSetting)
Annotations
@LogMessage
level:WARN
@Message:Manageable service was registered with JMX support (`%s`). JMX support is scheduled for removal in 6.0
id:90000028
deprecatedJmxSupportback to summary
public void deprecatedJmxSupport(String jmxEnabledSetting)
Annotations
@LogMessage
level:WARN
@Message:JMX support has been enabled via `%s`. This feature is scheduled for removal in 6.0
id:90000029
deprecatedLegacyCriteriaback to summary
public void deprecatedLegacyCriteria()
Annotations
@LogMessage
level:WARN
@Message:Hibernate\'s legacy org.hibernate.Criteria API is deprecated; use the JPA javax.persistence.criteria.CriteriaQuery instead
id:90000022
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
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
logDeprecatedInstrumentTaskback to summary
public void logDeprecatedInstrumentTask(Class<T> taskClass, Class<T> newTaskClass)
Annotations
@LogMessage
level:WARN
@Message:You are using the deprecated legacy bytecode enhancement Ant-task. This task is left in place for a short-time to aid migrations to 5.1 and the new (vastly improved) bytecode enhancement support. This task (%s) now delegates to thenew Ant-task (%s) leveraging that new bytecode enhancement. You should update your build to use the new task explicitly.
id:90000020
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
logDeprecatedNamingStrategySettingback to summary
public void logDeprecatedNamingStrategySetting(String setting, String implicitInstead, String physicalInstead)

Log a warning about an attempt to specify no-longer-supported NamingStrategy

Parameters
setting:String

- The old setting that indicates the NamingStrategy to use

implicitInstead:String

- The new setting that indicates the ImplicitNamingStrategy to use

physicalInstead:String

- The new setting that indicates the PhysicalNamingStrategy to use

Annotations
@LogMessage
level:WARN
@Message:Attempted to specify unsupported NamingStrategy via setting [%s]; NamingStrategy has been removed in favor of the split ImplicitNamingStrategy and PhysicalNamingStrategy; use [%s] or [%s], respectively, instead.
id:90000006
logDeprecatedScannerSettingback to summary
public void logDeprecatedScannerSetting()

Log about usage of deprecated Scanner setting

Annotations
@LogMessage
level:INFO
@Message:Found usage of deprecated setting for specifying Scanner [hibernate.ejb.resource_scanner]; use [hibernate.archive.scanner] instead
id:90000001
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
logDeprecationOfClassEntityTypeSelectorback to summary
public void logDeprecationOfClassEntityTypeSelector(String path)
Annotations
@LogMessage
level:WARN
@Message:Found use of deprecated entity-type selector syntax in HQL/JPQL query [\'%1$s.class\']; use TYPE operator instead : type(%1$s)
id:90000017
logDeprecationOfCollectionPropertiesInHqlback to summary
public void logDeprecationOfCollectionPropertiesInHql(String collectionPropertyName, String alias)
Annotations
@LogMessage
level:WARN
@Message:Found use of deprecated \'collection property\' syntax in HQL/JPQL query [%2$s.%1$s]; use collection function syntax instead [%1$s(%2$s)].
id:90000016
logDeprecationOfDomEntityModeSupportback to summary
public void logDeprecationOfDomEntityModeSupport()

Log message indicating the use of features that were only useful for DOM4J EntityMode, which was removed a long time ago.

Annotations
@LogMessage
level:WARN
@Message:Use of DOM4J entity-mode is considered deprecated
id:90000003
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
logDeprecationOfMultipleEntityModeSupportback to summary
public void logDeprecationOfMultipleEntityModeSupport()

Log message indicating the use of multiple EntityModes for a single entity.

Annotations
@LogMessage
level:WARN
@Message:Support for an entity defining multiple entity-modes is deprecated
id:90000002
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
logDeprecationOfTemporaryTableBulkIdStrategyback to summary
public void logDeprecationOfTemporaryTableBulkIdStrategy()
Annotations
@LogMessage
level:WARN
@Message:org.hibernate.hql.spi.TemporaryTableBulkIdStrategy (temporary) has been deprecated in favor of the more specific org.hibernate.hql.spi.id.local.LocalTemporaryTableBulkIdStrategy (local_temporary).
id:90000011
logUseOfDeprecatedConnectionHandlingSettingsback to summary
public void logUseOfDeprecatedConnectionHandlingSettings()
Annotations
@LogMessage
level:WARN
@Message:Encountered use of deprecated Connection handling settings [hibernate.connection.acquisition_mode]or [hibernate.connection.release_mode]; use [hibernate.connection.handling_mode] instead
id:90000023
logUseOfDeprecatedZeroBasedJdbcStyleParamsback to summary
public void logUseOfDeprecatedZeroBasedJdbcStyleParams()
Annotations
@LogMessage
level:WARN
@Message:Application requested zero be used as the base for JDBC-style parameters found in native-queries; this is a *temporary* backwards-compatibility setting to help applications using versions prior to 5.3 in upgrading. It will be removed in a later version.
id:90000024
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