Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionuse the JPA 2.1
ForeignKey
annotationNeeded for backwards compatibility until the deprecated, legacy generation stuff can be removedThe options available here are all now offered by other newer and better-designed annotations in this package. This annotation will soon be removed, since it's very annoying to have two annotations named@Table
.sinceTable
is deprecatedno longer usedUse settings,TypeContributor
,FunctionContributor
orAdditionalMappingContributor
instead depending on needWill be removed without replacement. See HHH-15641Will be removed without replacement. See HHH-15641UseBytecodeProvider.getReflectionOptimizer(Class, Map)
inssteadThere are much better ways to control the flush mode of a session, for example,SessionBuilder.flushMode(org.hibernate.FlushMode)
orSession.setHibernateFlushMode(org.hibernate.FlushMode)
.Will be removed, Hibernate ORM will use the BytecodeProvider implementation it finds on the classpath loading it via the standard ServiceLoader mechanism. Currently, there is only a single implementation which is included in Hibernate ORM, so it's not possible to override this. See HHH-17643Will be removed without replacement. See HHH-15641Will be removed without replacement. See HHH-15641Originally added as a backwards compatibility flagImplicitNamingStrategy
andPhysicalNamingStrategy
should be used instead.UseGlobalTemporaryTableStrategy.CREATE_ID_TABLES
.UseGlobalTemporaryTableStrategy.DROP_ID_TABLES
.UseLocalTemporaryTableStrategy.DROP_ID_TABLES
.UsePersistentTableStrategy.CREATE_ID_TABLES
.UsePersistentTableStrategy.DROP_ID_TABLES
.UseSecondPass
insteadWill be replaced withHANADialect
in the future.useDialect.getCheckCondition(String, Long[])
insteadThis is no longer calledThis is never called, and since at least Hibernate 5 has just returnedfalse
in every dialect. It will be removed.This seems to be supported on all platforms, and we don't call this except in test suiteUseDialect.trimPattern(TrimSpec, boolean)
instead.useHANADialect
withDatabaseVersion.make( 4 )
insteaduseHANADialect
insteaduseHANADialect
insteadno longer used, useGetGeneratedKeysDelegate
insteadUseOracle12cGetGeneratedKeysDelegate(EntityPersister)
instead.in favor ofSize(Integer, Integer, Long)
in favor ofSize(Integer, Integer, Long)
these integer codes have not been used for a long timethese integer codes have not been used for a long timeUseFetchStyle
No longer usedNo longer usedNo longer usedNo longer usedNo longer usedUse anExpectation
classthis is no longer usedthis is never calledthis is not used anywherethis is not used anywhereSubclasses should now directly inheritPostInsertIdentifierGenerator
andBulkInsertionCapableIdentifierGenerator
, or even better, simply implementOnExecutionGenerator
directly.should be removedThis remains around as an implementation detail ofhbm.xml
mappings.UseGeneratedValuesHelper.getGeneratedValues(java.sql.ResultSet, org.hibernate.persister.entity.EntityPersister, org.hibernate.generator.EventType, org.hibernate.type.descriptor.WrapperOptions)
insteadUse aOnExecutionGenerator
This is not an elegant way to do anythingNo longer usedNo substitute.UseBasicSelectingDelegate(EntityPersister)
instead.UseGeneratedValuesMutationDelegate
instead.UseInsertReturningDelegate(EntityPersister, EventType)
instead.UseSybaseJConnGetGeneratedKeysDelegate(EntityPersister)
instead.UseEntityPersister
instead.this interface is unnecessary and no longer usedUse discovery instead.Consider using discovery instead to dynamically locate contributors.Consider using discovery instead to dynamically locate contributors.supply aGenerationTypeStrategyRegistration
insteadUse the updated formUseNavigablePath
orNavigableRole
instead, depending on need.No longer used, should be removedThis method does not respect theImplicitNamingStrategy
This method does not respect theImplicitNamingStrategy
Only used from deprecated methodsNo longer usedthis method is no longer calledThis method will be removed in the next releaseThis method will be removed in the next releaseThis method will be removed in the next releaseUseSimpleValue.getSelectables()
insteadThis will be removed with no replacement.UsePersistentClass.isCached
insteadUsePersistentClass.setCached(boolean)
insteadthis method is no longer usedthis method is no longer usedUseSimpleValue.getSelectables()
insteadNo longer used, should be removedNo longer used, should be removedNo longer used, should be removedNo longer used, should be removedUseDiscriminable.getDiscriminatorMapping()
instead.No longer used.Hibernate is moving away fromType
. Corresponding mapping metamodel calls should be used instead - here (generally),PluralAttributeMapping
Read-by-position makes this irrelevant. Currently still used bySQLQueryParser
Hibernate is moving away fromType
. Corresponding mapping metamodel calls should be used instead - here,PluralAttributeMapping.getElementDescriptor()
Read-by-position makes this irrelevant. Currently still used bySQLQueryParser
Hibernate is moving away fromType
. Corresponding mapping metamodel calls should be used instead - here,PluralAttributeMapping.getIdentifierDescriptor()
Read-by-position makes this irrelevant. Currently still used bySQLQueryParser
Hibernate is moving away fromType
. Corresponding mapping metamodel calls should be used instead - here,PluralAttributeMapping.getIndexDescriptor()
Read-by-position makes this irrelevant. Currently still used bySQLQueryParser
Hibernate is moving away fromType
. Corresponding mapping metamodel calls should be used instead - here,PluralAttributeMapping.getKeyDescriptor()
Replaced byEmbeddedCollectionPart
Replaced byCollectionPart
Given the mapping-model and SQM, this contract is no longer needed. Note however thatSQLQueryParser
currently uses this along with otherNo longer used.No longer used. SeeDeleteCoordinatorStandard
With no replacement.No longer used. SeeAbstractEntityPersister.getDeleteCoordinator()
No longer used. SeeAbstractEntityPersister.getUpdateCoordinator()
this method is no longer usedNo longer used. SeeUpdateCoordinator
this method is no longer usedNo longer used. SeeMutationExecutorService
With no replacementWith no replacementNo longer usedWith no replacementNo longer usedWith no replacementReplaced byEntityMappingType
Replaced byEntityMappingType
The functionality of DiscriminatorMetadata,DiscriminatorType
andMetaType
have been consolidated intoEntityDiscriminatorMapping
andDiscriminatorConverter
The functionality of DiscriminatorType,DiscriminatorMetadata
andMetaType
have been consolidated intoEntityDiscriminatorMapping
andDiscriminatorConverter
useEntityMutationTarget.getInsertDelegate()
insteadThis interface is obsoleteNo longer used.UseFunctionRenderer
insteadUseSelfRenderingSqmFunction.getFunctionRenderer()
insteadthis constructor does not carry information about the query which caused the failurewas previously used for Criteria. UseSqmDeleteStatement(Class,NodeBuilder)
insteadwas previously used for HQL. UseSqmDeleteStatement(NodeBuilder)
insteadDon't use this method. It has no effect.was previously used for HQL. UseSqmUpdateStatement(NodeBuilder)
insteadwas previously used for Criteria. UseSqmUpdateStatement(Class, SqmCriteriaNodeBuilder)
instead.This method is no longer usedIt is no longer possible to plug custom implementations of this SPI. It will be removed.this is never called, and luckily so, because it's not null-safesinceJdbcObserver
is deprecatedUseSessionBuilder.tenantIdentifier(Object)
insteadUseAbstractSqlAstTranslator.getDual()
insteadUse the updated signatureWill be removed. Use the other methods to visit each operation.Will be removed. Use the other methods to visit each operation.Abstraction was not useful, so it was inlined intoEntityFetchJoinedImpl
directlyNow modeled throughEntityHolder
UseRowProcessingState.finishRowProcessing(boolean)
insteadUseStatelessSessionBuilder.tenantIdentifier(Object)
insteadNo longer used, seeSchemaToolingSettings.HBM2DDL_FILTER_PROVIDER
No direct replacement.No direct replacement.Replaced byAnnotationBasedGenerator
Replaced byAttributeMapping
No direct replacement, though seeAttributeMapping
andAttributeMetadata
No direct replacementNo direct replacementNo direct replacementNo direct replacementNo direct replacementReplaced byEntityMappingType
. EntityMetamodel was a first attempt at what has becomeEntityMappingType
Replaced byEntityVersionMapping
Replaced byEventType
as id-generation has been redefined using the new broader generation approach.No direct replacement; seeEntityIdentifierMapping
No direct replacement; seeEntityIdentifierMapping
No direct replacementNo direct replacementReplaced byAttributeMapping
Replaced byGenerator
Replaced byGenerator
Use the built-in support for enumsThe functionality of MetaType,DiscriminatorType
andDiscriminatorMetadata
have been consolidated intoEntityDiscriminatorMapping
andDiscriminatorConverter
useStandardBasicTypes.BINARY_WRAPPER
instead
-
Deprecated InterfacesInterfaceDescriptionno longer usedUse settings,
TypeContributor
,FunctionContributor
orAdditionalMappingContributor
instead depending on needPrefer the form of these methods defined onBytecodeLazyAttributeInterceptor
insteadMoved, but still need this definition for ehcacheImplicitNamingStrategy
andPhysicalNamingStrategy
should be used instead.UseSecondPass
insteadthis is no longer usedsinceSession.replicate(java.lang.Object, org.hibernate.ReplicationMode)
is deprecatedsinceSession.saveOrUpdate(java.lang.Object)
and friends are deprecatedUseGeneratedValuesMutationDelegate
instead.UseEntityPersister
instead.this interface is unnecessary and no longer usedseeUUIDGenerator
Consider using discovery instead to dynamically locate contributors.Use theSpecHints
form insteadsupply aGenerationTypeStrategyRegistration
insteadUseIndexedBiConsumer
insteadUseIndexedConsumer
insteadthis is no longer usedUse Hibernate's mapping modelMappingMetamodel
Use Hibernate's mapping modelMappingMetamodel
PreferJpaMetamodel
UseEmbeddableDomainType
instead. Originally intended to describe the actual usage of an embeddable (the embedded) because it was intended to include the mapping (column, etc) information. However, that causes us to need multiple embeddable instances per embeddable class.Just used to singly extend all the deprecated collection persister rolesGiven the mapping-model and SQM, this contract is no longer needed. Note however thatSQLQueryParser
currently uses this along with otherJust used to singly extend all the deprecated entity persister rolesThe functionality of DiscriminatorMetadata,DiscriminatorType
andMetaType
have been consolidated intoEntityDiscriminatorMapping
andDiscriminatorConverter
This interface is obsoleteUseEntityMappingType
insteadUseRuntimeModelCreationContext
insteadUseFunctionRenderer
insteadIt is no longer possible to plug custom implementations of this SPI. It will be removed.simply construct aLockOptions
and pass it toSession.lock(Object, LockOptions)
.UseTupleTransformer
and/orResultListTransformer
insteadReplaced byAnnotationBasedGenerator
Replaced byAttributeMapping
No direct replacement; seeEntityIdentifierMapping
This contract is no longer used by Hibernate. Implement/useInstantiator
instead. SeeManagedTypeRepresentationStrategy
No direct replacementReplaced byGenerator
Replaced byGenerator
-
Deprecated ClassesClassDescriptionthis class is no longer usedUse
AvailableHints
insteadwill move toorg.hibernate.boot.model.source.spi
, where its only uses arethis class is no longer usedThis helper class is no longer usedNamingStrategy
itself has been deprecatedNamingStrategy
itself has been deprecatedNamingStrategy
itself has been deprecatedNamingStrategy
itself has been deprecatedWill be replaced withHANADialect
in the future.UseDB2iDialect
UseDB2iDialect
useHANADialect
withDatabaseVersion.make( 4 )
insteaduseHANADialect
insteaduseHANADialect
insteaduseDB2zIdentityColumnSupport
no longer used, useGetGeneratedKeysDelegate
insteaduseMariaDBDialect(1060)
useMySQLDialect(800)
useDB2SequenceSupport
useSQLServerDialect(11)
useSQLServerDialect(13)
implementInterceptor
directlyuseAppliedGraph
insteadNo longer usedSubclasses should now directly inheritPostInsertIdentifierGenerator
andBulkInsertionCapableIdentifierGenerator
, or even better, simply implementOnExecutionGenerator
directly.sinceUUIDHexGenerator
is deprecatedThis remains around as an implementation detail ofhbm.xml
mappings.useUuidGenerator
This is not used anymore in any of theGeneratedValuesMutationDelegate
implementations.useUuidGenerator
andUuidGenerator
insteadThis remains around as an implementation detail ofhbm.xml
mappings.UseExpectation.RowCount
, creating a custom subclass if necessaryUseExpectation.OutParameter
, creating a custom subclass if necessaryUseAvailableHints
insteadUseNavigablePath
orNavigableRole
instead, depending on need.this class is no longer usedThis is replaced byValueGeneration
andGenerationTiming
, and is no longer usedno longer usedReplaced byEmbeddedCollectionPart
Replaced byCollectionPart
Replaced byEntityMappingType
Replaced byEntityMappingType
The functionality of DiscriminatorType,DiscriminatorMetadata
andMetaType
have been consolidated intoEntityDiscriminatorMapping
andDiscriminatorConverter
Abstraction was not useful, so it was inlined intoEntityFetchJoinedImpl
directlyNow modeled throughEntityHolder
sinceResultTransformer
is deprecatedsinceResultTransformer
is deprecatedsinceResultTransformer
is deprecatedsinceResultTransformer
is deprecatedsinceResultTransformer
is deprecatedNo direct replacement.No direct replacement.No direct replacement, though seeAttributeMapping
andAttributeMetadata
No direct replacementuseCurrentTimestampGeneration
sinceInstantiator
is deprecatedNo direct replacementNo direct replacementNo direct replacementNo direct replacementReplaced byEntityMappingType
. EntityMetamodel was a first attempt at what has becomeEntityMappingType
Replaced byEntityVersionMapping
No direct replacement; seeEntityIdentifierMapping
LikeInstantiator
itself, deprecated.No direct replacementReplaced byAttributeMapping
This style of generation has been replaced byorg.hibernate.generator
useCurrentTimestampGeneration
sinceGeneratorType
is deprecatedNo longer useduseFloatJdbcType
Use the built-in support for enumsThe functionality of MetaType,DiscriminatorType
andDiscriminatorMetadata
have been consolidated intoEntityDiscriminatorMapping
andDiscriminatorConverter
-
Deprecated Enum ClassesEnum ClassDescriptionuse
EventType
andEventTypeSets
instead- Use the JPA-defined
FetchType.EAGER
instead ofLazyCollection(FALSE)
. - Use static methods of
Hibernate
, for exampleHibernate.size(Collection)
,Hibernate.contains(Collection, Object)
, orHibernate.get(Map, Object)
instead ofLazyCollection(EXTRA)
.
sincePolymorphism
is deprecatedUse anExpectation
class instead.UseFetchStyle
Use anExpectation
classseeMultiKeyLoadSizingStrategy
insteadUse Jakarta Persistence Nulls instead.sinceSession.replicate(Object, ReplicationMode)
is deprecatedReplaced byEventType
as id-generation has been redefined using the new broader generation approach. - Use the JPA-defined
-
Deprecated ExceptionsExceptionsDescriptionWas only ever referenced in a single place, in an extremely dubious way.
-
Deprecated Annotation InterfacesAnnotation InterfaceDescriptionPrefer Table.comment()Per Comment, prefer Table.comment()use the JPA 2.1
ForeignKey
annotationValueGenerationType
andAnnotationValueGeneration
now provide a much more powerful and typesafe alternativeUse the new approach based onIdGeneratorType
.sinceGenericGenerator
is deprecated.UseIndex
instead.- Use the JPA-defined
FetchType.EAGER
instead ofLazyCollection(FALSE)
. - Use static methods of
Hibernate
, for exampleHibernate.size(Collection)
,Hibernate.contains(Collection, Object)
, orHibernate.get(Map, Object)
instead ofLazyCollection(EXTRA)
.
use JPA annotations to specify theFetchType
This annotation is hardly ever useful.This annotation is almost never useful.SinceSession.update(Object)
is deprecateduseCurrentTimestamp
insteadThe options available here are all now offered by other newer and better-designed annotations in this package. This annotation will soon be removed, since it's very annoying to have two annotations named@Table
.sinceTable
is deprecateduse annotation members of JPA association mapping annotations, for example,OneToMany.targetEntity()
UseSQLRestriction
- Use the JPA-defined
-
Deprecated FieldsFieldDescriptionCalling stored-procedures and functions via
NativeQuery
is no longer supported. UseProcedureCall
orStoredProcedureQuery
instead.There are much better ways to control the flush mode of a session, for example,SessionBuilder.flushMode(org.hibernate.FlushMode)
orSession.setHibernateFlushMode(org.hibernate.FlushMode)
.useGenerationTypeStrategyRegistration
insteadUseAvailableSettings.JAKARTA_LOCK_SCOPE
insteadUseAvailableSettings.JAKARTA_LOCK_TIMEOUT
insteadUseBatchSettings.BUILDER
insteadWill be removed, Hibernate ORM will use the BytecodeProvider implementation it finds on the classpath loading it via the standard ServiceLoader mechanism. Currently, there is only a single implementation which is included in Hibernate ORM, so it's not possible to override this. See HHH-17643Will be removed without replacement. See HHH-15641Will be removed without replacement. See HHH-15641this is only honored forhibernate-infinispan
UseCacheSettings.JAKARTA_SHARED_CACHE_MODE
insteadUseCacheSettings.JAKARTA_SHARED_CACHE_RETRIEVE_MODE
insteadUseCacheSettings.JAKARTA_SHARED_CACHE_STORE_MODE
insteadAn appropriate batch-fetch style is selected automaticallyThe JPA-standardJdbcSettings.JAKARTA_JTA_DATASOURCE
orJdbcSettings.JAKARTA_JTA_DATASOURCE
setting is now preferred.UseJdbcSettings.JAKARTA_HBM2DDL_DB_MAJOR_VERSION
insteadUseJdbcSettings.JAKARTA_HBM2DDL_DB_MINOR_VERSION
insteadUseJdbcSettings.JAKARTA_HBM2DDL_DB_NAME
insteadUseJdbcSettings.JAKARTA_HBM2DDL_DB_VERSION
insteadThe JPA-standard settingJdbcSettings.JAKARTA_JDBC_DRIVER
is now preferred.UseJdbcSettings.JAKARTA_HBM2DDL_CONNECTION
insteadUseJdbcSettings.JAKARTA_JDBC_DRIVER
insteadUseJdbcSettings.JAKARTA_JDBC_PASSWORD
insteadUseJdbcSettings.JAKARTA_JDBC_URL
insteadUseJdbcSettings.JAKARTA_JDBC_USER
insteadUseJdbcSettings.JAKARTA_JTA_DATASOURCE
insteadUseJdbcSettings.JAKARTA_NON_JTA_DATASOURCE
insteadThe JPA-standard settingJdbcSettings.JAKARTA_JDBC_USER
is now preferred.The JPA-standard settingJdbcSettings.JAKARTA_JDBC_URL
is now preferred.The JPA-standard settingJdbcSettings.JAKARTA_JDBC_USER
is now preferred.UseMappingSettings.DEFAULT_LIST_SEMANTICS
instead. The specification actually leaves this behavior undefined, saying that portable applications should not rely on any specific behavior for aList
with no@OrderColumn
.UseManagedBeanSettings.JAKARTA_CDI_BEAN_MANAGER
insteadIt makes no sense at all to enable this at the global level for a persistence unit. If anything, it could be a setting specific to a given embeddable class. But, four years after the introduction of this feature, it's still marked experimental and has multiple known unresolved bugs. It's therefore time for those who advocated for this feature to accept defeat.Originally added as a backwards compatibility flagUsePersistenceSettings.JAKARTA_PERSISTENCE_PROVIDER
insteadUsePersistenceSettings.JAKARTA_TRANSACTION_TYPE
insteadthis setting is not currently usedUseGlobalTemporaryTableStrategy.CREATE_ID_TABLES
.UseGlobalTemporaryTableStrategy.DROP_ID_TABLES
.UseLocalTemporaryTableStrategy.DROP_ID_TABLES
.UsePersistentTableStrategy.CREATE_ID_TABLES
.UsePersistentTableStrategy.DROP_ID_TABLES
.The JPA-standard settingSchemaToolingSettings.JAKARTA_HBM2DDL_CREATE_SCHEMAS
is now preferred.Migrate toSchemaToolingSettings.JAKARTA_HBM2DDL_CREATE_SOURCE
insteadThe JPA-standard settingSchemaToolingSettings.JAKARTA_HBM2DDL_CREATE_SCRIPT_SOURCE
is now preferred.UseValidationSettings.JAKARTA_VALIDATION_FACTORY
insteadUseValidationSettings.JAKARTA_VALIDATION_MODE
insteadUseGraphLanguageLexer.VOCABULARY
instead.UseGraphLanguageParser.VOCABULARY
instead.UseHqlLexer.VOCABULARY
instead.UseHqlParser.VOCABULARY
instead.UseSqlScriptLexer.VOCABULARY
instead.UseSqlScriptParser.VOCABULARY
instead.UseOrderingLexer.VOCABULARY
instead.UseOrderingParser.VOCABULARY
instead.Use aOnExecutionGenerator
This is not an elegant way to do anythingUseExpectation.None
Use discovery instead.Consider using discovery instead to dynamically locate contributors.this feature of HQL is now deprecateduseStandardBasicTypes.BINARY_WRAPPER
instead
-
Deprecated MethodsMethodDescriptionUse
Cache.includeLazy()
for the sake of typesafety.This was introduced in errorWhenfalse
, this annotation has no effect.Whenfalse
, this annotation has no effect.this member is currently ignored and has no effectNeeded for backwards compatibility until the deprecated, legacy generation stuff can be removeduseGenericGenerator.type()
for typesafetyuseNamedNativeQuery.cacheStoreMode()
andNamedNativeQuery.cacheRetrieveMode()
sinceCacheModeType
is deprecatedCalling database procedures and functions throughNativeQuery
is no longer supported; useNamedStoredProcedureQuery
instead.useNamedQuery.cacheStoreMode()
andNamedQuery.cacheRetrieveMode()
sinceCacheModeType
is deprecatedWhenfalse
, this annotation has no effect.useSQLDelete.verify()
with anExpectation
classuseSQLDeleteAll.verify()
with anExpectation
classuseSQLInsert.verify()
with anExpectation
classuseSQLUpdate.verify()
with anExpectation
classuseCheck
.useComment
This setting has no effect in Hibernate 6useSQLInsert.table()
to specify the secondary tableuseSQLInsert.table()
to specify the secondary tableuseSQLInsert.table()
to specify the secondary tableWith move to unified schema, this setting is now deprecated and will be removed once support for readinghbm.xml
files is fully removed.UseSqlStringGenerationContext.toIdentifier(String)
instead.no longer used, so this should be removedSee discussion ofTypeContributor
in User Guide.UseTypeContributions.contributeType(BasicType)
instead.UseTypeContributions.contributeType(BasicType)
instead.Because Session.update(java.lang.Object) itself is deprecated: an appropriate style is selectedUseMappingSettings.DEFAULT_LIST_SEMANTICS
insteadhbm.xml
mapping file support is deprecated. Use extended orm.xml bindings instead.No longer supported: No longer used internallyWill be removed without replacement. See HHH-15641Will be removed without replacement. See HHH-15641UseBytecodeProvider.getReflectionOptimizer(Class, Map)
inssteadonly because it's currently never calleduseDialect.getCheckCondition(String, Long[])
insteadOverride the methodrenderInsertIntoNoColumns()
on thetranslator
returned by this dialect.This is no longer calledThis is only called fromSybaseASESqlAstTranslator
so it doesn't need to be declared here.This is never called, and since at least Hibernate 5 has just returnedfalse
in every dialect. It will be removed.This seems to be supported on all platforms, and we don't call this except in test suiteUseDialect.trimPattern(TrimSpec, boolean)
instead.With no replacement. No longer usedWith no replacement. No longer usedUse a providedSqlStringGenerationContext
instead.these integer codes have not been used for a long timethese integer codes have not been used for a long timeNo longer usedNo longer usedNo longer usedNo longer usedthis method should be removed; alternative methods are available that better express the intent, allowing for better optimisations. Not aggressively removing this as it's an SPI, but also useful for testing and other contexts which are not performance sensitive. N.B. This might return an immutable map: do not use for mutations!Just as the method it overrides. Interceptors that deal with lazy state should implementBytecodeLazyAttributeInterceptor
Just as the method it overrides. Interceptors that deal with lazy state should implementBytecodeLazyAttributeInterceptor
Interceptors that deal with * lazy state should implementBytecodeLazyAttributeInterceptor
this is never calledno longer for internal use, useSessionFactoryImplementor.getMappingMetamodel()
orSqmCreationContext.getJpaMetamodel()
OperationalContext should cover this overload I believeOperationalContext should cover this overload I believeOperationalContext should cover this overload I believeOperationalContext should cover this overload I believeOperationalContext should cover this overload I believeOperationalContext should cover this overload I believethere's no good reason to expose this herethere's no reason to expose this herethis is not used anywherethere's no good reason to expose this herethis is not used anywherethere's no reason to expose this herelikely want to useEventListenerGroup.clearListeners()
instead, which doesn't also reset the registered DuplicationStrategy(ies).this is not the most efficient way for iterating the event listeners. SeeEventListenerGroup.fireEventOnEachListener(Object, BiConsumer)
and its overloaded variants for better alternatives.There is no plan to remove this operation, but its use should be avoided sinceFilterDefinition
is an SPI type, and so this operation is a layer-breaker.UseGraphSemantic.fromHintName(java.lang.String)
insteadUseGraphSemantic.getJakartaHintName()
insteadExposed for tests only.UseDatabaseStructure.configure(Optimizer)
instead.No longer usedExposed for tests only.should be removedthis method is no longer calledUseGeneratedValuesHelper.getGeneratedValues(java.sql.ResultSet, org.hibernate.persister.entity.EntityPersister, org.hibernate.generator.EventType, org.hibernate.type.descriptor.WrapperOptions)
insteadExposed for tests only.No longer usedNo substitute.- useUseMappingSettings.DEFAULT_LIST_SEMANTICS
insteadUse the updated formNo longer used, should be removedThis method does not respect theImplicitNamingStrategy
This method does not respect theImplicitNamingStrategy
Only used from deprecated methodsNo longer usedthis method is no longer calledThis method will be removed in the next releaseThis method will be removed in the next releaseThis method will be removed in the next releaseWe need to addColumn.isIdentity()
UseSimpleValue.getSelectables()
insteadThis will be removed with no replacement.UsePersistentClass.isCached
insteadUsePersistentClass.setCached(boolean)
insteadthis method is no longer usedthis method is no longer usednew read-by-position paradigm means that these generated aliases are no longer needednew read-by-position paradigm means that these generated aliases are no longer neededUseSimpleValue.getSelectables()
insteadnot used and no longer supported.UseTable.addInitCommand(Function)
instead.No longer used, should be removedNo longer used, should be removedNo longer used, should be removedNo longer used, should be removedShould build aQualifiedTableName
then useSqlStringGenerationContext.format(QualifiedTableName)
.Use the form accepting SharedSessionContractImplementor insteadUse the form accepting SharedSessionContractImplementor insteadUseDiscriminable.getDiscriminatorMapping()
instead.useMappingMetamodel.locateEntityDescriptor(Class)
instead- useMappingMetamodel.getEntityDescriptor(String)
insteadUseRuntimeMetamodels.getEmbedded(NavigableRole)
insteadWith no direct replacement; seeMappingMetamodel.forEachCollectionDescriptor(java.util.function.Consumer<org.hibernate.persister.collection.CollectionPersister>)
andMappingMetamodel.streamCollectionDescriptors()
insteadWith no direct replacement; seeMappingMetamodel.forEachEntityDescriptor(java.util.function.Consumer<org.hibernate.persister.entity.EntityPersister>)
andMappingMetamodel.streamEntityDescriptors()
insteaduseNaturalIdLoadAccess.using(Map)
withMap.of()
, which is slightly more typesafeuseMap.of()
insteadNo longer used.This operation is no longer called by Hibernate.Hibernate is moving away fromType
. Corresponding mapping metamodel calls should be used instead - here (generally),PluralAttributeMapping
Read-by-position makes this irrelevant. Currently still used bySQLQueryParser
Hibernate is moving away fromType
. Corresponding mapping metamodel calls should be used instead - here,PluralAttributeMapping.getElementDescriptor()
Read-by-position makes this irrelevant. Currently still used bySQLQueryParser
Hibernate is moving away fromType
. Corresponding mapping metamodel calls should be used instead - here,PluralAttributeMapping.getIdentifierDescriptor()
Read-by-position makes this irrelevant. Currently still used bySQLQueryParser
Hibernate is moving away fromType
. Corresponding mapping metamodel calls should be used instead - here,PluralAttributeMapping.getIndexDescriptor()
Read-by-position makes this irrelevant. Currently still used bySQLQueryParser
Hibernate is moving away fromType
. Corresponding mapping metamodel calls should be used instead - here,PluralAttributeMapping.getKeyDescriptor()
No longer used.No longer used. SeeDeleteCoordinatorStandard
Hibernate no longer uses aliases to read from result setsWith no replacement.Hibernate no longer uses aliases to read from result setsby the supertypesNo longer used. SeeAbstractEntityPersister.getDeleteCoordinator()
No longer used. SeeAbstractEntityPersister.getUpdateCoordinator()
Hibernate no longer uses aliases to read from result setsHibernate no longer uses aliases to read from result setsHibernate no longer uses aliases to read from result setsthis method is no longer usedOnly ever used from places where we really want to useSelectStatement
(select generator)InsertSelectStatement
UpdateStatement
DeleteStatement
No longer used. SeeUpdateCoordinator
Hibernate no longer uses aliases to read from result setsthis method is no longer usedNo longer used. SeeMutationExecutorService
With no replacementWith no replacementNo longer useduseFetchable.isSelectable()
instead.With no replacementNo longer usedWith no replacementThis feature is no longer supportedThis operation is no longer called by Hibernate.UseEntityPersister.getValue(java.lang.Object, int)
insteadUseEntityPersister.getValues(java.lang.Object)
insteadUseEntityPersister.canReadFromCache()
and/orEntityPersister.canWriteToCache()
depending on needUseSelectableMapping.getSelectionExpression()
insteadUseEntityMappingType.getDiscriminatorValue()
insteaduseEntityMutationTarget.getInsertDelegate()
insteadNo longer used.useQueryProducer.createQuery(String, Class)
,QueryProducer.createSelectionQuery(String, Class)
, orQueryProducer.createMutationQuery(String)
depending on intentionUseSelfRenderingSqmFunction.getFunctionRenderer()
insteadDon't use this method. It has no effect.This method is no longer usedthis is never called, and luckily so, because it's not null-safesinceJdbcObserver
is deprecatedthis is no longer called, and unnecessary, since the needed services are now available viaJdbcSessionContext.getJdbcServices()
exposing this here seems to kinda defeat the purpose of this SPIWith no real replacementWith no real replacementUseSessionBuilder.tenantIdentifier(Object)
insteadThere is no plan to remove this operation, but its use should be avoided sinceFilterDefinition
is an SPI type, and so this operation is a layer-breaker.There is no plan to remove this operation, but its use should be avoided sinceSessionFactoryOptions
is an SPI type, and so this operation is a layer-breaker.useSharedSessionBuilder.connectionHandlingMode()
instead.UseAbstractSqlAstTranslator.getDual()
insteadUse the updated signatureNo longer used.Will be removed. Use the other methods to visit each operation.Will be removed. Use the other methods to visit each operation.UseRowProcessingState.finishRowProcessing(boolean)
insteadUseStatelessSessionBuilder.tenantIdentifier(Object)
insteadNo longer used, seeSchemaToolingSettings.HBM2DDL_FILTER_PROVIDER
UseNonIdentifierAttribute.isDirtyCheckable()
insteadnot appropriate for named enum or array typesnot appropriate for named enum or array typesnot appropriate for named enum or array types, useDdlType.getTypeName(Size, Type, DdlTypeRegistry)
insteadnot appropriate for named enum or array types, useDdlType.getTypeName(Size, Type, DdlTypeRegistry)
insteadnot appropriate for named enum or array types, useDdlTypeRegistry.getTypeName(int, Size, Type)
insteadnot appropriate for named enum or array types, useDdlTypeRegistry.getTypeName(int, Size, Type)
insteadThis operation is not very typesafe, and we're migrating away from its useThis simply isn't a very sensible place to hang theServiceRegistry
This operation is not very typesafe, and we're migrating away from its use
-
Deprecated ConstructorsConstructorDescriptionprovide a
DatabaseVersion
UseOracle12cGetGeneratedKeysDelegate(EntityPersister)
instead.in favor ofSize(Integer, Integer, Long)
in favor ofSize(Integer, Integer, Long)
UseBasicSelectingDelegate(EntityPersister)
instead.UseInsertReturningDelegate(EntityPersister, EventType)
instead.UseSybaseJConnGetGeneratedKeysDelegate(EntityPersister)
instead.this constructor does not carry information about the query which caused the failurethis constructor does not carry information about the query which caused the failurethis constructor does not carry information about the query which caused the failurewas previously used for Criteria. UseSqmDeleteStatement(Class,NodeBuilder)
insteadwas previously used for HQL. UseSqmDeleteStatement(NodeBuilder)
insteadwas previously used for HQL. UseSqmUpdateStatement(NodeBuilder)
insteadwas previously used for Criteria. UseSqmUpdateStatement(Class, SqmCriteriaNodeBuilder)
instead.this constructor does not carry information about the query which caused the failurethis constructor does not carry information about the query which caused the failurethis constructor does not carry information about the query which caused the failurefilterJdbcParameters
is no longer usedfilterJdbcParameters
is no longer usedfilterJdbcParameters
is no longer usedfilterJdbcParameters
is no longer usedfilterJdbcParameters
is no longer usedfilterJdbcParameters
is no longer usedSeePojoInstantiator
SeePojoInstantiator
SeePojoInstantiator
-
Deprecated Enum ConstantsEnum ConstantDescriptionsince
Session.delete(Object)
is deprecatedsinceSession.replicate(Object, ReplicationMode)
is deprecatedsinceSession.saveOrUpdate(Object)
is deprecateduse operations ofHibernate
useFetchType.EAGER
useFetchType.LAZY
useFetchType.EAGER
this setting no longer has any useful effectuseFetchType.LAZY
-
Deprecated Annotation Interface ElementsAnnotation Interface ElementDescriptionUse
Cache.includeLazy()
for the sake of typesafety.This was introduced in errorWhenfalse
, this annotation has no effect.Whenfalse
, this annotation has no effect.this member is currently ignored and has no effectuseGenericGenerator.type()
for typesafetyuseNamedNativeQuery.cacheStoreMode()
andNamedNativeQuery.cacheRetrieveMode()
sinceCacheModeType
is deprecatedCalling database procedures and functions throughNativeQuery
is no longer supported; useNamedStoredProcedureQuery
instead.useNamedQuery.cacheStoreMode()
andNamedQuery.cacheRetrieveMode()
sinceCacheModeType
is deprecatedWhenfalse
, this annotation has no effect.useSQLDelete.verify()
with anExpectation
classuseSQLDeleteAll.verify()
with anExpectation
classuseSQLInsert.verify()
with anExpectation
classuseSQLUpdate.verify()
with anExpectation
classuseCheck
.useComment
This setting has no effect in Hibernate 6useSQLInsert.table()
to specify the secondary tableuseSQLInsert.table()
to specify the secondary tableuseSQLInsert.table()
to specify the secondary table
DialectOverride.SQLOrder