Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Packages
  • Interfaces
  • Classes
  • Enum Classes
  • Exceptions
  • Annotation Interfaces
  • Fields
  • Methods
  • Constructors
  • Enum Constants
  • Annotation Interface Elements
  • Terminally Deprecated Elements
    Element
    Description
    org.hibernate.annotations.DialectOverride.OrderBy
    Use DialectOverride.SQLOrder
    org.hibernate.annotations.ForeignKey
    use the JPA 2.1 ForeignKey annotation
    org.hibernate.annotations.GenerationTime.getEquivalent()
    Needed for backwards compatibility until the deprecated, legacy generation stuff can be removed
    org.hibernate.annotations.OrderBy
    Use SQLOrder instead. This annotation will be removed eventually, since its unqualified name collides with OrderBy.
    org.hibernate.annotations.Table
    The 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.
    org.hibernate.annotations.Table.foreignKey()
    use SecondaryTable.foreignKey()
    org.hibernate.annotations.Tables
    since Table is deprecated
    org.hibernate.boot.model.source.spi.PluralAttributeMapKeySource.getMapKeyNature()
    No longer used
    org.hibernate.boot.spi.MetadataBuilderContributor
    Use settings, TypeContributor, FunctionContributor or AdditionalMappingContributor instead depending on need
    org.hibernate.boot.spi.MetadataBuildingOptions.getManagedTypeRepresentationResolver()
    no longer called
    org.hibernate.bytecode.enhance.spi.EnhancementContext.doDirtyCheckingInline(UnloadedClass)
    Will be removed without replacement. See HHH-15641
    org.hibernate.bytecode.enhance.spi.EnhancementContext.hasLazyLoadableAttributes(UnloadedClass)
    Will be removed without replacement. See HHH-15641
    org.hibernate.bytecode.internal.BytecodeProviderInitiator.BYTECODE_PROVIDER_NAME_BYTEBUDDY
    Register a BytecodeProvider through Java services.
    org.hibernate.bytecode.internal.BytecodeProviderInitiator.BYTECODE_PROVIDER_NAME_DEFAULT
    Deprecated with no replacement
    org.hibernate.bytecode.internal.BytecodeProviderInitiator.BYTECODE_PROVIDER_NAME_NONE
    Register a BytecodeProvider through Java services.
    org.hibernate.bytecode.spi.BytecodeProvider.getReflectionOptimizer(Class, String[], String[], Class[])
    Use BytecodeProvider.getReflectionOptimizer(Class, Map) insstead
    org.hibernate.cfg.AvailableSettings.ALLOW_REFRESH_DETACHED_ENTITY
    Will be removed with no replacement from ORM version 7 onwards
    org.hibernate.cfg.BytecodeSettings.BYTECODE_PROVIDER
    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-17643
    org.hibernate.cfg.BytecodeSettings.ENHANCER_ENABLE_DIRTY_TRACKING
    Will be removed without replacement. See HHH-15641
    org.hibernate.cfg.BytecodeSettings.ENHANCER_ENABLE_LAZY_INITIALIZATION
    Will be removed without replacement. See HHH-15641
    org.hibernate.cfg.MappingSettings.USE_ENTITY_WHERE_CLAUSE_FOR_COLLECTIONS
    Originally added as a backwards compatibility flag
    org.hibernate.cfg.SchemaToolingSettings.BULK_ID_STRATEGY_GLOBAL_TEMPORARY_CREATE_TABLES
    Use GlobalTemporaryTableStrategy.CREATE_ID_TABLES.
    org.hibernate.cfg.SchemaToolingSettings.BULK_ID_STRATEGY_GLOBAL_TEMPORARY_DROP_TABLES
    Use GlobalTemporaryTableStrategy.DROP_ID_TABLES.
    org.hibernate.cfg.SchemaToolingSettings.BULK_ID_STRATEGY_LOCAL_TEMPORARY_DROP_TABLES
    Use LocalTemporaryTableStrategy.DROP_ID_TABLES.
    org.hibernate.cfg.SchemaToolingSettings.BULK_ID_STRATEGY_PERSISTENT_TEMPORARY_CREATE_TABLES
    Use PersistentTableStrategy.CREATE_ID_TABLES.
    org.hibernate.cfg.SchemaToolingSettings.BULK_ID_STRATEGY_PERSISTENT_TEMPORARY_DROP_TABLES
    Use PersistentTableStrategy.DROP_ID_TABLES.
    org.hibernate.dialect.Dialect.getCheckCondition(String, long[])
    use Dialect.getCheckCondition(String, Long[]) instead
    org.hibernate.dialect.H2SqlAstTranslator.visitReturningInsertStatement(TableInsertStandard)
    org.hibernate.dialect.identity.IdentityColumnSupport.appendIdentitySelectToInsert(String)
    Use IdentityColumnSupport.appendIdentitySelectToInsert(String, String) instead.
    org.hibernate.dialect.SybaseDialect.jtdsDriver
    org.hibernate.dialect.unique.DefaultUniqueDelegate
    use AlterTableUniqueDelegate
    org.hibernate.engine.jdbc.Size(Integer, Integer, Integer, Size.LobMultiplier)
    in favor of Size(Integer, Integer, Long)
    org.hibernate.engine.jdbc.Size(Integer, Integer, Long, Size.LobMultiplier)
    in favor of Size(Integer, Integer, Long)
    org.hibernate.engine.jdbc.Size.getLobMultiplier()
    org.hibernate.engine.jdbc.Size.LobMultiplier
    org.hibernate.engine.jdbc.Size.setLobMultiplier(Size.LobMultiplier)
    org.hibernate.engine.spi.CascadingAction.noCascade(EventSource, Object, EntityPersister, Type, int)
    No longer used
    org.hibernate.engine.spi.CascadingAction.requiresNoCascadeChecking()
    No longer used
    org.hibernate.engine.spi.ExecuteUpdateResultCheckStyle
    Use an Expectation class
    org.hibernate.engine.spi.PersistenceContext.proxyFor(EntityHolder)
    Use PersistenceContext.proxyFor(EntityHolder, EntityPersister) instead.
    org.hibernate.engine.spi.SessionFactoryImplementor.resolveParameterBindType(Class<T>)
    Use SessionFactoryImplementor.getMappingMetamodel().QueryParameterBindingTypeResolver.resolveParameterBindType(Class)
    org.hibernate.engine.spi.SessionFactoryImplementor.resolveParameterBindType(T)
    Use SessionFactoryImplementor.getMappingMetamodel().QueryParameterBindingTypeResolver.resolveParameterBindType(Object)
    org.hibernate.id.AbstractPostInsertGenerator
    Subclasses should now directly inherit PostInsertIdentifierGenerator and BulkInsertionCapableIdentifierGenerator, or even better, simply implement OnExecutionGenerator directly.
    org.hibernate.id.Assigned
    replaced by Assigned
    org.hibernate.id.ForeignGenerator
    This remains around as an implementation detail of hbm.xml mappings.
    org.hibernate.id.IdentifierGeneratorHelper.SHORT_CIRCUIT_INDICATOR
    This is not an elegant way to do anything
    org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
    Use GeneratedValuesMutationDelegate instead.
    org.hibernate.id.PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER
    no longer set, use JdbcEnvironment.getIdentifierHelper()
    org.hibernate.internal.FastSessionServices.getDefaultTimeZoneStorageStrategy()
    org.hibernate.internal.FastSessionServices.getMutationExecutorService()
    org.hibernate.internal.JdbcObserverImpl
    since JdbcObserver is deprecated
    org.hibernate.jpa.boot.spi.JpaSettings.METADATA_BUILDER_CONTRIBUTOR
    Use discovery instead.
    org.hibernate.jpa.boot.spi.JpaSettings.TYPE_CONTRIBUTORS
    Consider using discovery instead to dynamically locate contributors.
    org.hibernate.jpa.boot.spi.TypeContributorList
    Consider using discovery instead to dynamically locate contributors.
    org.hibernate.loader.ast.spi.BatchLoaderFactory.createEntityBatchLoader(int, EntityMappingType, SessionFactoryImplementor)
    Use BatchLoaderFactory.createEntityBatchLoader(int, EntityMappingType, LoadQueryInfluencers) instead
    org.hibernate.loader.ast.spi.Loadable.isAffectedByEnabledFilters(LoadQueryInfluencers)
    Use Loadable.isAffectedByEnabledFilters(LoadQueryInfluencers, boolean) instead
    org.hibernate.loader.ast.spi.Loadable.isAffectedByInfluencers(LoadQueryInfluencers)
    Use Loadable.isAffectedByInfluencers(LoadQueryInfluencers, boolean) instead
    org.hibernate.mapping.SimpleValue.DEFAULT_ID_GEN_STRATEGY
    org.hibernate.mapping.Table()
    org.hibernate.metamodel.mapping.DiscriminatedAssociationModelPart.getDiscriminatorPart()
    Use Discriminable.getDiscriminatorMapping() instead.
    org.hibernate.metamodel.mapping.EntityMappingType.extractConcreteTypeStateValues(Map<AttributeMapping, DomainResultAssembler>, RowProcessingState)
    org.hibernate.metamodel.mapping.FilterRestrictable.applyFilterRestrictions(Consumer<Predicate>, TableGroup, boolean, Map<String, Filter>, SqlAstCreationState)
    Use FilterRestrictable.applyFilterRestrictions(Consumer, TableGroup, boolean, Map, boolean, SqlAstCreationState) instead
    org.hibernate.metamodel.mapping.Restrictable.applyBaseRestrictions(Consumer<Predicate>, TableGroup, boolean, Map<String, Filter>, Set<String>, SqlAstCreationState)
    Use Restrictable.applyBaseRestrictions(Consumer, TableGroup, boolean, Map, boolean, Set, SqlAstCreationState) instead
    org.hibernate.metamodel.model.domain.internal.EntityPersisterConcurrentMap.convertToMap()
    Higly inefficient - do not use; this exists to support other deprecated methods and will be removed.
    org.hibernate.persister.collection.CollectionPersister.getCollectionType()
    Hibernate is moving away from Type. Corresponding mapping metamodel calls should be used instead - here (generally), PluralAttributeMapping
    org.hibernate.persister.collection.CollectionPersister.getElementColumnAliases(String)
    Read-by-position makes this irrelevant. Currently still used by SQLQueryParser
    org.hibernate.persister.collection.CollectionPersister.getElementType()
    Hibernate is moving away from Type. Corresponding mapping metamodel calls should be used instead - here, PluralAttributeMapping.getElementDescriptor()
    org.hibernate.persister.collection.CollectionPersister.getIdentifierColumnAlias(String)
    Read-by-position makes this irrelevant. Currently still used by SQLQueryParser
    org.hibernate.persister.collection.CollectionPersister.getIdentifierType()
    Hibernate is moving away from Type. Corresponding mapping metamodel calls should be used instead - here, PluralAttributeMapping.getIdentifierDescriptor()
    org.hibernate.persister.collection.CollectionPersister.getIndexColumnAliases(String)
    Read-by-position makes this irrelevant. Currently still used by SQLQueryParser
    org.hibernate.persister.collection.CollectionPersister.getIndexType()
    Hibernate is moving away from Type. Corresponding mapping metamodel calls should be used instead - here, PluralAttributeMapping.getIndexDescriptor()
    org.hibernate.persister.collection.CollectionPersister.getKeyColumnAliases(String)
    Read-by-position makes this irrelevant. Currently still used by SQLQueryParser
    org.hibernate.persister.collection.CollectionPersister.getKeyType()
    Hibernate is moving away from Type. Corresponding mapping metamodel calls should be used instead - here, PluralAttributeMapping.getKeyDescriptor()
    org.hibernate.persister.entity.DiscriminatorMetadata
    The functionality of DiscriminatorMetadata, DiscriminatorType and MetaType have been consolidated into EntityDiscriminatorMapping and DiscriminatorConverter
    org.hibernate.persister.entity.DiscriminatorType
    The functionality of DiscriminatorType, DiscriminatorMetadata and MetaType have been consolidated into EntityDiscriminatorMapping and DiscriminatorConverter
    org.hibernate.persister.entity.EntityPersister.delete(Object, Object, Object, SharedSessionContractImplementor)
    Use DeleteCoordinator.delete(java.lang.Object, java.lang.Object, java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.EntityPersister.getPropertyType(String)
    See ManagedMappingType.findAttributeMapping(String)
    org.hibernate.persister.entity.EntityPersister.getSynchronizationSpaces()
    No longer called
    org.hibernate.persister.entity.EntityPersister.insert(Object[], Object, SharedSessionContractImplementor)
    Use InsertCoordinator.insert(Object, Object[], SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.EntityPersister.insert(Object, Object[], Object, SharedSessionContractImplementor)
    Use InsertCoordinator.insert(Object, Object, Object[], SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.EntityPersister.merge(Object, Object[], int[], boolean, Object[], Object, Object, Object, SharedSessionContractImplementor)
    Use UpdateCoordinator.update(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object[], java.lang.Object, java.lang.Object[], int[], boolean, org.hibernate.engine.spi.SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.EntityPersister.processInsertGeneratedProperties(Object, Object, Object[], SharedSessionContractImplementor)
    Use EntityPersister.processInsertGeneratedProperties(Object, Object, Object[], GeneratedValues, SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.EntityPersister.processUpdateGeneratedProperties(Object, Object, Object[], SharedSessionContractImplementor)
    Use EntityPersister.processUpdateGeneratedProperties(Object, Object, Object[], GeneratedValues, SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.EntityPersister.toColumns(String)
    No longer used in ORM core
    org.hibernate.persister.entity.EntityPersister.update(Object, Object[], int[], boolean, Object[], Object, Object, Object, SharedSessionContractImplementor)
    Use UpdateCoordinator.update(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object[], java.lang.Object, java.lang.Object[], int[], boolean, org.hibernate.engine.spi.SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.Joinable
    Use ModelPartContainer, TableGroupProducer and/or TableGroupJoinProducer instead depending on need
    org.hibernate.persister.entity.mutation.EntityMutationTarget.getIdentityInsertDelegate()
    use EntityMutationTarget.getInsertDelegate() instead
    org.hibernate.persister.entity.mutation.EntityMutationTarget.hasSkippableTables()
    No longer called
    org.hibernate.persister.entity.SingleTableEntityPersister.getSubclassClosure()
    No longer used.
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayContainsAll(Expression<T[]>, Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIncludes(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayContainsAll(Expression<T[]>, T[])
    Replaced with HibernateCriteriaBuilder.arrayIncludes(Expression, Object[])
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayContainsAll(T[], Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIncludes(Object[], Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayContainsAllNullable(Expression<T[]>, Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIncludesNullable(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayContainsAllNullable(Expression<T[]>, T[])
    Replaced with HibernateCriteriaBuilder.arrayIncludesNullable(Expression, Object[])
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayContainsAllNullable(T[], Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIncludesNullable(Object[], Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayOverlaps(Expression<T[]>, Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIntersects(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayOverlaps(Expression<T[]>, T[])
    Replaced with HibernateCriteriaBuilder.arrayIntersects(Expression, Object[])
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayOverlaps(T[], Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIntersects(Object[], Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayOverlapsNullable(Expression<T[]>, Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIntersectsNullable(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayOverlapsNullable(Expression<T[]>, T[])
    Replaced with HibernateCriteriaBuilder.arrayIntersectsNullable(Expression, Object[])
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayOverlapsNullable(T[], Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIntersectsNullable(Object[], jakarta.persistence.criteria.Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionContainsAll(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIncludes(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionContainsAll(Expression<? extends Collection<E>>, Collection<? extends E>)
    Replaced with HibernateCriteriaBuilder.collectionIncludes(Expression, Collection)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionContainsAll(Collection<E>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIncludes(Collection, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionContainsAllNullable(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIncludesNullable(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionContainsAllNullable(Expression<? extends Collection<E>>, Collection<? extends E>)
    Replaced with HibernateCriteriaBuilder.collectionIncludesNullable(Expression, Collection)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionContainsAllNullable(Collection<E>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIncludesNullable(Collection, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionOverlaps(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIntersects(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionOverlaps(Expression<? extends Collection<E>>, Collection<? extends E>)
    Replaced with HibernateCriteriaBuilder.collectionIntersects(Expression, Collection)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionOverlaps(Collection<E>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIntersects(Collection, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionOverlapsNullable(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIntersectsNullable(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionOverlapsNullable(Expression<? extends Collection<E>>, Collection<? extends E>)
    Replaced with HibernateCriteriaBuilder.collectionIntersectsNullable(Expression, Collection)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionOverlapsNullable(Collection<E>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIntersectsNullable(Collection, Expression)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayContainsAll(Expression<T[]>, Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayContainsAll(Expression<T[]>, T[])
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayContainsAll(T[], Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayContainsAllNullable(Expression<T[]>, Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayContainsAllNullable(Expression<T[]>, T[])
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayContainsAllNullable(T[], Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayOverlaps(Expression<T[]>, Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayOverlaps(Expression<T[]>, T[])
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayOverlaps(T[], Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayOverlapsNullable(Expression<T[]>, Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayOverlapsNullable(Expression<T[]>, T[])
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayOverlapsNullable(T[], Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionContainsAll(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionContainsAll(Expression<? extends Collection<E>>, Collection<? extends E>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionContainsAll(Collection<E>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionContainsAllNullable(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionContainsAllNullable(Expression<? extends Collection<E>>, Collection<? extends E>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionContainsAllNullable(Collection<E>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionOverlaps(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionOverlaps(Expression<? extends Collection<E>>, Collection<? extends E>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionOverlaps(Collection<E>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionOverlapsNullable(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionOverlapsNullable(Expression<? extends Collection<E>>, Collection<? extends E>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionOverlapsNullable(Collection<E>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.NullPrecedence.isDefaultOrdering(SortDirection, NullOrdering)
    No longer called
    org.hibernate.query.sqm.function.FunctionRenderer.render(SqlAppender, List<? extends SqlAstNode>, SqlAstTranslator<?>)
    Use FunctionRenderer.render(SqlAppender, List, ReturnableType, SqlAstTranslator) instead
    org.hibernate.query.sqm.function.FunctionRenderingSupport
    Use FunctionRenderer instead
    org.hibernate.query.sqm.InterpretationException(String)
    this constructor does not carry information about the query which caused the failure
    org.hibernate.query.sqm.produce.function.FunctionReturnTypeResolver.resolveFunctionReturnType(ReturnableType<?>, Supplier<MappingModelExpressible<?>>, List<? extends SqmTypedNode<?>>, TypeConfiguration)
    Use FunctionReturnTypeResolver.resolveFunctionReturnType(ReturnableType, SqmToSqlAstConverter, List, TypeConfiguration) instead
    org.hibernate.query.sqm.tree.update.SqmUpdateStatement(SqmRoot<T>, NodeBuilder)
    was previously used for HQL. Use SqmUpdateStatement(NodeBuilder) instead
    org.hibernate.query.sqm.tree.update.SqmUpdateStatement(SqmRoot<T>, SqmQuerySource, NodeBuilder)
    was previously used for Criteria. Use SqmUpdateStatement(Class, SqmCriteriaNodeBuilder) instead.
    org.hibernate.resource.jdbc.spi.JdbcObserver
    It is no longer possible to plug custom implementations of this SPI. It will be removed.
    org.hibernate.resource.jdbc.spi.JdbcSessionContext.getObserver()
    since JdbcObserver is deprecated
    org.hibernate.SessionBuilder.tenantIdentifier(String)
    Use SessionBuilder.tenantIdentifier(Object) instead
    org.hibernate.SharedSessionBuilder.tenantIdentifier(String)
    org.hibernate.sql.exec.spi.JdbcOperationQuery.getAppliedParameters()
    No longer called
    org.hibernate.sql.model.ast.MutationGroup.forEachTableMutation(BiConsumer<Integer, M>)
    org.hibernate.sql.model.ast.MutationGroup.getTableMutation(String)
    org.hibernate.sql.model.MutationOperationGroup.forEachOperation(BiConsumer<Integer, O>)
    Will be removed. Use the other methods to visit each operation.
    org.hibernate.sql.model.MutationOperationGroup.hasMatching(BiFunction<Integer, O, Boolean>)
    Will be removed. Use the other methods to visit each operation.
    org.hibernate.StatelessSessionBuilder.tenantIdentifier(String)
    Use StatelessSessionBuilder.tenantIdentifier(Object) instead
    org.hibernate.tool.schema.spi.ExecutionOptions.getSchemaFilter()
    No longer used, see SchemaToolingSettings.HBM2DDL_FILTER_PROVIDER
    org.hibernate.tuple.AbstractAttribute
    No direct replacement.
    org.hibernate.tuple.AbstractNonIdentifierAttribute
    No direct replacement.
    org.hibernate.tuple.AnnotationValueGeneration
    Replaced by AnnotationBasedGenerator
    org.hibernate.tuple.Attribute
    Replaced by AttributeMapping
    org.hibernate.tuple.BaselineAttributeInformation
    No direct replacement, though see AttributeMapping and AttributeMetadata
    org.hibernate.tuple.component.AbstractCompositionAttribute
    No direct replacement
    org.hibernate.tuple.entity.AbstractEntityBasedAttribute
    No direct replacement
    org.hibernate.tuple.entity.EntityBasedAssociationAttribute
    No direct replacement
    org.hibernate.tuple.entity.EntityBasedBasicAttribute
    No direct replacement
    org.hibernate.tuple.entity.EntityBasedCompositionAttribute
    No direct replacement
    org.hibernate.tuple.entity.EntityMetamodel
    Replaced by EntityMappingType. EntityMetamodel was a first attempt at what has become EntityMappingType
    org.hibernate.tuple.entity.VersionProperty
    Replaced by EntityVersionMapping
    org.hibernate.tuple.GenerationTiming
    Replaced by EventType as id-generation has been redefined using the new broader generation approach.
    org.hibernate.tuple.IdentifierAttribute
    No direct replacement; see EntityIdentifierMapping
    org.hibernate.tuple.IdentifierProperty
    No direct replacement; see EntityIdentifierMapping
    org.hibernate.tuple.NonIdentifierAttribute
    No direct replacement
    org.hibernate.tuple.PropertyFactory
    No direct replacement
    org.hibernate.tuple.StandardProperty
    Replaced by AttributeMapping
    org.hibernate.tuple.ValueGeneration
    Replaced by Generator
    org.hibernate.tuple.ValueGenerator
    Replaced by Generator
    org.hibernate.type.descriptor.jdbc.InstantAsTimestampJdbcType
    Use TimestampUtcAsJdbcTimestampJdbcType
    org.hibernate.type.descriptor.jdbc.InstantAsTimestampWithTimeZoneJdbcType
    Use TimestampUtcAsOffsetDateTimeJdbcType
    org.hibernate.type.descriptor.jdbc.JdbcType.addAuxiliaryDatabaseObjects(JavaType<?>, Size, Database, TypeConfiguration)
    Use JdbcType.addAuxiliaryDatabaseObjects(JavaType, Size, Database, JdbcTypeIndicators) instead
    org.hibernate.type.descriptor.sql.DdlType.getCastTypeName(SqlExpressible, Long, Integer, Integer)
    Use DdlType.getCastTypeName(Size, SqlExpressible, DdlTypeRegistry) instead
    org.hibernate.type.descriptor.sql.DdlType.getCastTypeName(JdbcType, JavaType<?>)
    Use DdlType.getCastTypeName(Size, SqlExpressible, DdlTypeRegistry) instead
    org.hibernate.type.descriptor.sql.DdlType.getCastTypeName(JdbcType, JavaType<?>, Long, Integer, Integer)
    Use DdlType.getCastTypeName(Size, SqlExpressible, DdlTypeRegistry) instead
    org.hibernate.type.EnumType
    Use the built-in support for enums
    org.hibernate.type.MetaType
    The functionality of MetaType, DiscriminatorType and DiscriminatorMetadata have been consolidated into EntityDiscriminatorMapping and DiscriminatorConverter
  • Deprecated Packages
    Package
    Description
    org.hibernate.transform
    The contents of this package are deprecated
    org.hibernate.tuple
    The contents of this package and its subpackages are deprecated
  • Deprecated Interfaces
    Interface
    Description
    org.hibernate.boot.spi.MetadataBuilderContributor
    Use settings, TypeContributor, FunctionContributor or AdditionalMappingContributor instead depending on need
    org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer.InterceptorImplementor
    Prefer the form of these methods defined on BytecodeLazyAttributeInterceptor instead
    org.hibernate.cache.RegionFactory
    Moved, but still need this definition for ehcache
    org.hibernate.engine.spi.Mapping
    Use TypeConfiguration, Metadata, or RuntimeMetamodels to access such information
    org.hibernate.event.spi.ReplicateEventListener
    since Session.replicate(java.lang.Object, org.hibernate.ReplicationMode) is deprecated
    org.hibernate.event.spi.SaveOrUpdateEventListener
    since Session.saveOrUpdate(java.lang.Object) and friends are deprecated
    org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
    Use GeneratedValuesMutationDelegate instead.
    org.hibernate.id.UUIDGenerationStrategy
    see UUIDGenerator
    org.hibernate.jpa.boot.spi.TypeContributorList
    Consider using discovery instead to dynamically locate contributors.
    org.hibernate.jpa.LegacySpecHints
    Use the SpecHints form instead
    org.hibernate.Metamodel
    Prefer JpaMetamodel
    org.hibernate.metamodel.model.domain.EmbeddedDomainType
    Use EmbeddableDomainType 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.
    org.hibernate.metamodel.spi.MetamodelImplementor
    Use MappingMetamodel or JpaMetamodel instead. See RuntimeMetamodels.
    org.hibernate.persister.entity.DiscriminatorMetadata
    The functionality of DiscriminatorMetadata, DiscriminatorType and MetaType have been consolidated into EntityDiscriminatorMapping and DiscriminatorConverter
    org.hibernate.persister.entity.Joinable
    Use ModelPartContainer, TableGroupProducer and/or TableGroupJoinProducer instead depending on need
    org.hibernate.query.sqm.function.FunctionRenderingSupport
    Use FunctionRenderer instead
    org.hibernate.resource.jdbc.spi.JdbcObserver
    It is no longer possible to plug custom implementations of this SPI. It will be removed.
    org.hibernate.Session.LockRequest
    simply construct a LockOptions and pass it to Session.lock(Object, LockOptions).
    org.hibernate.transform.ResultTransformer
    Use TupleTransformer and/or ResultListTransformer instead
    org.hibernate.tuple.AnnotationValueGeneration
    Replaced by AnnotationBasedGenerator
    org.hibernate.tuple.Attribute
    Replaced by AttributeMapping
    org.hibernate.tuple.IdentifierAttribute
    No direct replacement; see EntityIdentifierMapping
    org.hibernate.tuple.NonIdentifierAttribute
    No direct replacement
    org.hibernate.tuple.ValueGeneration
    Replaced by Generator
    org.hibernate.tuple.ValueGenerator
    Replaced by Generator
  • Deprecated Classes
    Class
    Description
    org.hibernate.annotations.QueryHints
    Use AvailableHints instead
    org.hibernate.boot.model.Caching
    will move to org.hibernate.boot.model.source.spi, where its only uses are
    org.hibernate.dialect.identity.DB2390IdentityColumnSupport
    use DB2zIdentityColumnSupport
    org.hibernate.dialect.sequence.LegacyDB2SequenceSupport
    use DB2SequenceSupport
    org.hibernate.dialect.unique.DefaultUniqueDelegate
    use AlterTableUniqueDelegate
    org.hibernate.EmptyInterceptor
    implement Interceptor directly
    org.hibernate.event.internal.DefaultReplicateEventListener
    since Session.replicate(java.lang.Object, org.hibernate.ReplicationMode) is deprecated
    org.hibernate.event.internal.DefaultSaveEventListener
    since Session.save(java.lang.Object) is deprecated
    org.hibernate.event.internal.DefaultSaveOrUpdateEventListener
    since Session.saveOrUpdate(java.lang.Object) is deprecated
    org.hibernate.event.internal.DefaultUpdateEventListener
    since Session.update(java.lang.Object) is deprecated
    org.hibernate.generator.internal.SourceGeneration
    because both Source and hbm.xml are deprecated, though this implementation is instructive
    org.hibernate.id.AbstractPostInsertGenerator
    Subclasses should now directly inherit PostInsertIdentifierGenerator and BulkInsertionCapableIdentifierGenerator, or even better, simply implement OnExecutionGenerator directly.
    org.hibernate.id.AbstractUUIDGenerator
    since UUIDHexGenerator is deprecated
    org.hibernate.id.Assigned
    replaced by Assigned
    org.hibernate.id.ForeignGenerator
    This remains around as an implementation detail of hbm.xml mappings.
    org.hibernate.id.GUIDGenerator
    use UuidGenerator
    org.hibernate.id.UUIDGenerator
    use UuidGenerator and UuidGenerator instead
    org.hibernate.id.UUIDHexGenerator
    This remains around as an implementation detail of hbm.xml mappings.
    org.hibernate.internal.JdbcObserverImpl
    since JdbcObserver is deprecated
    org.hibernate.internal.util.ConfigHelper
    Use ClassLoaderService instead
    org.hibernate.internal.util.xml.DTDEntityResolver
    Hibernate now uses StAX for XML processing and the role of this class is served now by LocalXmlResourceResolver
    org.hibernate.jpa.QueryHints
    Use AvailableHints instead
    org.hibernate.metamodel.mapping.internal.MutableAttributeMappingList
    Please get rid of it: such collections should be immutable.
    org.hibernate.persister.entity.DiscriminatorType
    The functionality of DiscriminatorType, DiscriminatorMetadata and MetaType have been consolidated into EntityDiscriminatorMapping and DiscriminatorConverter
    org.hibernate.transform.AliasToBeanConstructorResultTransformer
    since ResultTransformer is deprecated
    org.hibernate.transform.AliasToBeanResultTransformer
    since ResultTransformer is deprecated
    org.hibernate.transform.AliasToEntityMapResultTransformer
    since ResultTransformer is deprecated
    org.hibernate.transform.ToListResultTransformer
    since ResultTransformer is deprecated
    org.hibernate.transform.Transformers
    since ResultTransformer is deprecated
    org.hibernate.tuple.AbstractAttribute
    No direct replacement.
    org.hibernate.tuple.AbstractNonIdentifierAttribute
    No direct replacement.
    org.hibernate.tuple.BaselineAttributeInformation
    No direct replacement, though see AttributeMapping and AttributeMetadata
    org.hibernate.tuple.component.AbstractCompositionAttribute
    No direct replacement
    org.hibernate.tuple.entity.AbstractEntityBasedAttribute
    No direct replacement
    org.hibernate.tuple.entity.EntityBasedAssociationAttribute
    No direct replacement
    org.hibernate.tuple.entity.EntityBasedBasicAttribute
    No direct replacement
    org.hibernate.tuple.entity.EntityBasedCompositionAttribute
    No direct replacement
    org.hibernate.tuple.entity.EntityMetamodel
    Replaced by EntityMappingType. EntityMetamodel was a first attempt at what has become EntityMappingType
    org.hibernate.tuple.entity.VersionProperty
    Replaced by EntityVersionMapping
    org.hibernate.tuple.IdentifierProperty
    No direct replacement; see EntityIdentifierMapping
    org.hibernate.tuple.PropertyFactory
    No direct replacement
    org.hibernate.tuple.StandardProperty
    Replaced by AttributeMapping
    org.hibernate.tuple.VmValueGeneration
    since GeneratorType is deprecated
    org.hibernate.type.descriptor.jdbc.InstantAsTimestampJdbcType
    Use TimestampUtcAsJdbcTimestampJdbcType
    org.hibernate.type.descriptor.jdbc.InstantAsTimestampWithTimeZoneJdbcType
    Use TimestampUtcAsOffsetDateTimeJdbcType
    org.hibernate.type.descriptor.jdbc.RealJdbcType
    use FloatJdbcType
    org.hibernate.type.EnumType
    Use the built-in support for enums
    org.hibernate.type.MetaType
    The functionality of MetaType, DiscriminatorType and DiscriminatorMetadata have been consolidated into EntityDiscriminatorMapping and DiscriminatorConverter
  • Deprecated Enum Classes
    Enum Class
    Description
    org.hibernate.annotations.CacheModeType
    use CacheMode or CacheStoreMode and CacheRetrieveMode.
    org.hibernate.annotations.GenerationTime
    use EventType and EventTypeSets instead
    org.hibernate.annotations.LazyCollectionOption
    • Use the JPA-defined FetchType.EAGER instead of LazyCollection(FALSE).
    • Use static methods of Hibernate, for example Hibernate.size(Collection), Hibernate.contains(Collection, Object), or Hibernate.get(Map, Object) instead of LazyCollection(EXTRA).
    org.hibernate.annotations.LazyToOneOption
    since LazyToOne is deprecated, use FetchType instead
    org.hibernate.annotations.PolymorphismType
    since Polymorphism is deprecated
    org.hibernate.annotations.ResultCheckStyle
    Use an Expectation class instead.
    org.hibernate.engine.jdbc.Size.LobMultiplier
    org.hibernate.engine.spi.ExecuteUpdateResultCheckStyle
    Use an Expectation class
    org.hibernate.query.NullPrecedence
    Use Jakarta Persistence Nulls instead.
    org.hibernate.ReplicationMode
    since Session.replicate(Object, ReplicationMode) is deprecated
    org.hibernate.tuple.GenerationTiming
    Replaced by EventType as id-generation has been redefined using the new broader generation approach.
  • Deprecated Exceptions
    Exceptions
    Description
    org.hibernate.boot.internal.FailedSecondPassException
    It would be nice to be able to eliminate this completely
  • Deprecated Annotation Interfaces
    Annotation Interface
    Description
    org.hibernate.annotations.Comment
    Prefer Table.comment()
    org.hibernate.annotations.Comments
    Per Comment, prefer Table.comment()
    org.hibernate.annotations.DialectOverride.OrderBy
    Use DialectOverride.SQLOrder
    org.hibernate.annotations.DialectOverride.Where
    Use DialectOverride.SQLRestriction
    org.hibernate.annotations.ForeignKey
    use the JPA 2.1 ForeignKey annotation
    org.hibernate.annotations.GeneratorType
    ValueGenerationType and AnnotationValueGeneration now provide a much more powerful and typesafe alternative
    org.hibernate.annotations.GenericGenerator
    Use the new approach based on IdGeneratorType.
    org.hibernate.annotations.GenericGenerators
    since GenericGenerator is deprecated.
    org.hibernate.annotations.Index
    Use Index instead.
    org.hibernate.annotations.IndexColumn
    Prefer the standard JPA OrderColumn annotation, using ListIndexBase instead of IndexColumn.base().
    org.hibernate.annotations.LazyCollection
    • Use the JPA-defined FetchType.EAGER instead of LazyCollection(FALSE).
    • Use static methods of Hibernate, for example Hibernate.size(Collection), Hibernate.contains(Collection, Object), or Hibernate.get(Map, Object) instead of LazyCollection(EXTRA).
    org.hibernate.annotations.LazyToOne
    use JPA annotations to specify the FetchType
    org.hibernate.annotations.Loader
    Use SQLSelect or HQLSelect.
    org.hibernate.annotations.OrderBy
    Use SQLOrder instead. This annotation will be removed eventually, since its unqualified name collides with OrderBy.
    org.hibernate.annotations.Polymorphism
    This annotation is hardly ever useful.
    org.hibernate.annotations.Proxy
    This annotation is almost never useful.
    org.hibernate.annotations.SelectBeforeUpdate
    Since Session.update(Object) is deprecated
    org.hibernate.annotations.Source
    use CurrentTimestamp instead
    org.hibernate.annotations.Table
    The 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.
    org.hibernate.annotations.Tables
    since Table is deprecated
    org.hibernate.annotations.Target
    use annotation members of JPA association mapping annotations, for example, OneToMany.targetEntity()
    org.hibernate.annotations.Where
    Use SQLRestriction
    org.hibernate.annotations.WhereJoinTable
    Use SQLJoinTableRestriction
  • Deprecated Fields
    Field
    Description
    org.hibernate.annotations.QueryHints.CALLABLE_FUNCTION
    Calling stored-procedures and functions via NativeQuery is no longer supported. Use ProcedureCall or StoredProcedureQuery instead.
    org.hibernate.bytecode.internal.BytecodeProviderInitiator.BYTECODE_PROVIDER_NAME_BYTEBUDDY
    Register a BytecodeProvider through Java services.
    org.hibernate.bytecode.internal.BytecodeProviderInitiator.BYTECODE_PROVIDER_NAME_DEFAULT
    Deprecated with no replacement
    org.hibernate.bytecode.internal.BytecodeProviderInitiator.BYTECODE_PROVIDER_NAME_NONE
    Register a BytecodeProvider through Java services.
    org.hibernate.cfg.AvailableSettings.ALLOW_REFRESH_DETACHED_ENTITY
    Will be removed with no replacement from ORM version 7 onwards
    org.hibernate.cfg.AvailableSettings.JPA_LOCK_SCOPE
    Use AvailableSettings.JAKARTA_LOCK_SCOPE instead
    org.hibernate.cfg.AvailableSettings.JPA_LOCK_TIMEOUT
    Use AvailableSettings.JAKARTA_LOCK_TIMEOUT instead
    org.hibernate.cfg.BatchSettings.BATCH_STRATEGY
    Use BatchSettings.BUILDER instead
    org.hibernate.cfg.BytecodeSettings.BYTECODE_PROVIDER
    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-17643
    org.hibernate.cfg.BytecodeSettings.ENHANCER_ENABLE_DIRTY_TRACKING
    Will be removed without replacement. See HHH-15641
    org.hibernate.cfg.BytecodeSettings.ENHANCER_ENABLE_LAZY_INITIALIZATION
    Will be removed without replacement. See HHH-15641
    org.hibernate.cfg.CacheSettings.CACHE_KEYS_FACTORY
    this is only honored for hibernate-infinispan
    org.hibernate.cfg.CacheSettings.JPA_SHARED_CACHE_MODE
    Use CacheSettings.JAKARTA_SHARED_CACHE_MODE instead
    org.hibernate.cfg.CacheSettings.JPA_SHARED_CACHE_RETRIEVE_MODE
    Use CacheSettings.JAKARTA_SHARED_CACHE_RETRIEVE_MODE instead
    org.hibernate.cfg.CacheSettings.JPA_SHARED_CACHE_STORE_MODE
    Use CacheSettings.JAKARTA_SHARED_CACHE_STORE_MODE instead
    org.hibernate.cfg.JdbcSettings.DATASOURCE
    The JPA-standard JdbcSettings.JAKARTA_JTA_DATASOURCE or JdbcSettings.JAKARTA_JTA_DATASOURCE setting is now preferred.
    org.hibernate.cfg.JdbcSettings.DIALECT_DB_MAJOR_VERSION
    Use JdbcSettings.JAKARTA_HBM2DDL_DB_MAJOR_VERSION instead
    org.hibernate.cfg.JdbcSettings.DIALECT_DB_MINOR_VERSION
    Use JdbcSettings.JAKARTA_HBM2DDL_DB_MINOR_VERSION instead
    org.hibernate.cfg.JdbcSettings.DIALECT_DB_NAME
    Use JdbcSettings.JAKARTA_HBM2DDL_DB_NAME instead
    org.hibernate.cfg.JdbcSettings.DIALECT_DB_VERSION
    Use JdbcSettings.JAKARTA_HBM2DDL_DB_VERSION instead
    org.hibernate.cfg.JdbcSettings.DRIVER
    The JPA-standard setting JdbcSettings.JAKARTA_JDBC_DRIVER is now preferred.
    org.hibernate.cfg.JdbcSettings.HBM2DDL_CONNECTION
    Use JdbcSettings.JAKARTA_HBM2DDL_CONNECTION instead
    org.hibernate.cfg.JdbcSettings.JPA_JDBC_DRIVER
    Use JdbcSettings.JAKARTA_JDBC_DRIVER instead
    org.hibernate.cfg.JdbcSettings.JPA_JDBC_PASSWORD
    Use JdbcSettings.JAKARTA_JDBC_PASSWORD instead
    org.hibernate.cfg.JdbcSettings.JPA_JDBC_URL
    Use JdbcSettings.JAKARTA_JDBC_URL instead
    org.hibernate.cfg.JdbcSettings.JPA_JDBC_USER
    Use JdbcSettings.JAKARTA_JDBC_USER instead
    org.hibernate.cfg.JdbcSettings.JPA_JTA_DATASOURCE
    Use JdbcSettings.JAKARTA_JTA_DATASOURCE instead
    org.hibernate.cfg.JdbcSettings.JPA_NON_JTA_DATASOURCE
    Use JdbcSettings.JAKARTA_NON_JTA_DATASOURCE instead
    org.hibernate.cfg.JdbcSettings.PASS
    The JPA-standard setting JdbcSettings.JAKARTA_JDBC_USER is now preferred.
    org.hibernate.cfg.JdbcSettings.URL
    The JPA-standard setting JdbcSettings.JAKARTA_JDBC_URL is now preferred.
    org.hibernate.cfg.JdbcSettings.USER
    The JPA-standard setting JdbcSettings.JAKARTA_JDBC_USER is now preferred.
    org.hibernate.cfg.JpaComplianceSettings.JPA_LIST_COMPLIANCE
    Use MappingSettings.DEFAULT_LIST_SEMANTICS instead. The specification actually leaves this behavior undefined, saying that portable applications should not rely on any specific behavior for a List with no @OrderColumn.
    org.hibernate.cfg.JpaComplianceSettings.JPAQL_STRICT_COMPLIANCE
    Prefer JpaComplianceSettings.JPA_QUERY_COMPLIANCE
    org.hibernate.cfg.ManagedBeanSettings.CDI_BEAN_MANAGER
    Use ManagedBeanSettings.JAKARTA_CDI_BEAN_MANAGER instead
    org.hibernate.cfg.MappingSettings.USE_ENTITY_WHERE_CLAUSE_FOR_COLLECTIONS
    Originally added as a backwards compatibility flag
    org.hibernate.cfg.PersistenceSettings.JPA_PERSISTENCE_PROVIDER
    Use PersistenceSettings.JAKARTA_PERSISTENCE_PROVIDER instead
    org.hibernate.cfg.PersistenceSettings.JPA_TRANSACTION_TYPE
    Use PersistenceSettings.JAKARTA_TRANSACTION_TYPE instead
    org.hibernate.cfg.QuerySettings.QUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE
    this setting is not currently used
    org.hibernate.cfg.SchemaToolingSettings.BULK_ID_STRATEGY_GLOBAL_TEMPORARY_CREATE_TABLES
    Use GlobalTemporaryTableStrategy.CREATE_ID_TABLES.
    org.hibernate.cfg.SchemaToolingSettings.BULK_ID_STRATEGY_GLOBAL_TEMPORARY_DROP_TABLES
    Use GlobalTemporaryTableStrategy.DROP_ID_TABLES.
    org.hibernate.cfg.SchemaToolingSettings.BULK_ID_STRATEGY_LOCAL_TEMPORARY_DROP_TABLES
    Use LocalTemporaryTableStrategy.DROP_ID_TABLES.
    org.hibernate.cfg.SchemaToolingSettings.BULK_ID_STRATEGY_PERSISTENT_TEMPORARY_CREATE_TABLES
    Use PersistentTableStrategy.CREATE_ID_TABLES.
    org.hibernate.cfg.SchemaToolingSettings.BULK_ID_STRATEGY_PERSISTENT_TEMPORARY_DROP_TABLES
    Use PersistentTableStrategy.DROP_ID_TABLES.
    org.hibernate.cfg.SchemaToolingSettings.HBM2DDL_CREATE_NAMESPACES
    The JPA-standard setting SchemaToolingSettings.JAKARTA_HBM2DDL_CREATE_SCHEMAS is now preferred.
    org.hibernate.cfg.SchemaToolingSettings.HBM2DDL_CREATE_SCHEMAS
    Use SchemaToolingSettings.JAKARTA_HBM2DDL_CREATE_SCHEMAS instead
    org.hibernate.cfg.SchemaToolingSettings.HBM2DDL_CREATE_SCRIPT_SOURCE
    Migrate to SchemaToolingSettings.JAKARTA_HBM2DDL_CREATE_SCRIPT_SOURCE
    org.hibernate.cfg.SchemaToolingSettings.HBM2DDL_CREATE_SOURCE
    Migrate to SchemaToolingSettings.JAKARTA_HBM2DDL_CREATE_SOURCE instead
    org.hibernate.cfg.SchemaToolingSettings.HBM2DDL_DATABASE_ACTION
    Use SchemaToolingSettings.JAKARTA_HBM2DDL_DATABASE_ACTION instead
    org.hibernate.cfg.SchemaToolingSettings.HBM2DDL_DROP_SCRIPT_SOURCE
    Migrate to SchemaToolingSettings.JAKARTA_HBM2DDL_DROP_SCRIPT_SOURCE
    org.hibernate.cfg.SchemaToolingSettings.HBM2DDL_DROP_SOURCE
    Migrate to SchemaToolingSettings.JAKARTA_HBM2DDL_DROP_SOURCE.
    org.hibernate.cfg.SchemaToolingSettings.HBM2DDL_IMPORT_FILES
    The JPA-standard setting SchemaToolingSettings.JAKARTA_HBM2DDL_CREATE_SCRIPT_SOURCE is now preferred.
    org.hibernate.cfg.SchemaToolingSettings.HBM2DDL_LOAD_SCRIPT_SOURCE
    Use SchemaToolingSettings.JAKARTA_HBM2DDL_LOAD_SCRIPT_SOURCE instead
    org.hibernate.cfg.SchemaToolingSettings.HBM2DDL_SCRIPTS_ACTION
    Use SchemaToolingSettings.JAKARTA_HBM2DDL_SCRIPTS_ACTION instead
    org.hibernate.cfg.SchemaToolingSettings.HBM2DDL_SCRIPTS_CREATE_TARGET
    Migrate to SchemaToolingSettings.JAKARTA_HBM2DDL_SCRIPTS_CREATE_TARGET
    org.hibernate.cfg.SchemaToolingSettings.HBM2DDL_SCRIPTS_DROP_TARGET
    Migrate to SchemaToolingSettings.JAKARTA_HBM2DDL_SCRIPTS_DROP_TARGET
    org.hibernate.cfg.ValidationSettings.JPA_PERSIST_VALIDATION_GROUP
    Use ValidationSettings.JAKARTA_PERSIST_VALIDATION_GROUP instead
    org.hibernate.cfg.ValidationSettings.JPA_REMOVE_VALIDATION_GROUP
    Use ValidationSettings.JAKARTA_REMOVE_VALIDATION_GROUP instead
    org.hibernate.cfg.ValidationSettings.JPA_UPDATE_VALIDATION_GROUP
    Use ValidationSettings.JAKARTA_UPDATE_VALIDATION_GROUP instead
    org.hibernate.cfg.ValidationSettings.JPA_VALIDATION_FACTORY
    Use ValidationSettings.JAKARTA_VALIDATION_FACTORY instead
    org.hibernate.cfg.ValidationSettings.JPA_VALIDATION_MODE
    Use ValidationSettings.JAKARTA_VALIDATION_MODE instead
    org.hibernate.dialect.SybaseDialect.jtdsDriver
    org.hibernate.engine.spi.CascadingActions.DELETE
    Use CascadingActions.REMOVE
    org.hibernate.id.IdentifierGeneratorHelper.SHORT_CIRCUIT_INDICATOR
    This is not an elegant way to do anything
    org.hibernate.id.PersistentIdentifierGenerator.IDENTIFIER_NORMALIZER
    no longer set, use JdbcEnvironment.getIdentifierHelper()
    org.hibernate.jdbc.Expectations.BASIC
    Use Expectation.RowCount
    org.hibernate.jdbc.Expectations.NONE
    Use Expectation.None
    org.hibernate.jdbc.Expectations.PARAM
    Use Expectation.OutParameter
    org.hibernate.jpa.boot.spi.JpaSettings.METADATA_BUILDER_CONTRIBUTOR
    Use discovery instead.
    org.hibernate.jpa.boot.spi.JpaSettings.TYPE_CONTRIBUTORS
    Consider using discovery instead to dynamically locate contributors.
    org.hibernate.LockOptions.SKIP_LOCKED
    use LockMode.UPGRADE_SKIPLOCKED
    org.hibernate.mapping.RootClass.DEFAULT_DISCRIMINATOR_COLUMN_NAME
    org.hibernate.mapping.RootClass.DEFAULT_IDENTIFIER_COLUMN_NAME
    org.hibernate.mapping.SimpleValue.DEFAULT_ID_GEN_STRATEGY
    org.hibernate.persister.collection.AbstractCollectionPersister.elementColumnAliases
    org.hibernate.persister.collection.AbstractCollectionPersister.elementType
    org.hibernate.persister.collection.AbstractCollectionPersister.indexColumnAliases
    org.hibernate.persister.collection.AbstractCollectionPersister.keyColumnAliases
    org.hibernate.persister.entity.AbstractEntityPersister.customSQLDelete
    org.hibernate.persister.entity.AbstractEntityPersister.customSQLInsert
    org.hibernate.persister.entity.AbstractEntityPersister.customSQLUpdate
    org.hibernate.persister.entity.AbstractEntityPersister.deleteCallable
    org.hibernate.persister.entity.AbstractEntityPersister.deleteExpectations
    org.hibernate.persister.entity.AbstractEntityPersister.insertCallable
    org.hibernate.persister.entity.AbstractEntityPersister.insertExpectations
    org.hibernate.persister.entity.AbstractEntityPersister.updateCallable
    org.hibernate.persister.entity.AbstractEntityPersister.updateExpectations
    org.hibernate.persister.entity.EntityPersister.ENTITY_ID
    this feature of HQL is now deprecated
  • Deprecated Methods
    Method
    Description
    org.hibernate.annotations.AttributeAccessor.value()
    use AttributeAccessor.strategy()
    org.hibernate.annotations.Cache.include()
    Use Cache.includeLazy() for the sake of typesafety.
    org.hibernate.annotations.CurrentTimestamp.timing()
    This was introduced in error
    org.hibernate.annotations.DynamicInsert.value()
    When false, this annotation has no effect.
    org.hibernate.annotations.DynamicUpdate.value()
    When false, this annotation has no effect.
    org.hibernate.annotations.ForeignKey.inverseName()
    this member is currently ignored and has no effect
    org.hibernate.annotations.Generated.value()
    use Generated.event()
    org.hibernate.annotations.GenerationTime.getEquivalent()
    Needed for backwards compatibility until the deprecated, legacy generation stuff can be removed
    org.hibernate.annotations.GenericGenerator.strategy()
    use GenericGenerator.type() for typesafety
    org.hibernate.annotations.NamedNativeQuery.cacheMode()
    use NamedNativeQuery.cacheStoreMode() and NamedNativeQuery.cacheRetrieveMode() since CacheModeType is deprecated
    org.hibernate.annotations.NamedNativeQuery.callable()
    Calling database procedures and functions through NativeQuery is no longer supported; use NamedStoredProcedureQuery instead.
    org.hibernate.annotations.NamedQuery.cacheMode()
    use NamedQuery.cacheStoreMode() and NamedQuery.cacheRetrieveMode() since CacheModeType is deprecated
    org.hibernate.annotations.SelectBeforeUpdate.value()
    When false, this annotation has no effect.
    org.hibernate.annotations.SQLDelete.check()
    use SQLDelete.verify() with an Expectation class
    org.hibernate.annotations.SQLDeleteAll.check()
    use SQLDeleteAll.verify() with an Expectation class
    org.hibernate.annotations.SQLInsert.check()
    use SQLInsert.verify() with an Expectation class
    org.hibernate.annotations.SQLUpdate.check()
    use SQLUpdate.verify() with an Expectation class
    org.hibernate.annotations.Table.checkConstraint()
    use Check.
    org.hibernate.annotations.Table.comment()
    use Comment
    org.hibernate.annotations.Table.fetch()
    This setting has no effect in Hibernate 6
    org.hibernate.annotations.Table.foreignKey()
    use SecondaryTable.foreignKey()
    org.hibernate.annotations.Table.indexes()
    use Table.indexes() or SecondaryTable.indexes()
    org.hibernate.annotations.Table.inverse()
    use SecondaryRow.owned()
    org.hibernate.annotations.Table.optional()
    use SecondaryRow.optional()
    org.hibernate.annotations.Table.sqlDelete()
    use SQLInsert.table() to specify the secondary table
    org.hibernate.annotations.Table.sqlInsert()
    use SQLInsert.table() to specify the secondary table
    org.hibernate.annotations.Table.sqlUpdate()
    use SQLInsert.table() to specify the secondary table
    org.hibernate.boot.archive.scan.spi.ScanOptions.canDetectHibernateMappingFiles()
    With move to unified schema, this setting is now deprecated and will be removed once support for reading hbm.xml files is fully removed.
    org.hibernate.boot.internal.MetadataBuilderImpl.contributeType(BasicType<?>)
    org.hibernate.boot.internal.MetadataBuilderImpl.contributeType(BasicType<?>, String...)
    org.hibernate.boot.internal.MetadataBuilderImpl.contributeType(UserType<?>, String[])
    org.hibernate.boot.MetadataSources.getXmlBindings()
    Prefer MetadataSources.getMappingXmlBindings() and/or MetadataSources.getHbmXmlBindings()
    org.hibernate.boot.model.internal.QueryBinder.createStoredProcedure(NamedNativeQueryDefinition.Builder<?>, MetadataBuildingContext, Supplier<RuntimeException>)
    User should use NamedStoredProcedureQuery instead
    org.hibernate.boot.model.relational.SqlStringGenerationContext.getIdentifierHelper()
    Use SqlStringGenerationContext.toIdentifier(String) instead.
    org.hibernate.boot.model.source.internal.hbm.ModelBinder.useEntityWhereClauseForCollections(MetadataBuildingContext)
    Interprets the setting "hibernate.use_entity_where_clause_for_collections", which itself is deprecated
    org.hibernate.boot.model.source.spi.PluralAttributeMapKeySource.getMapKeyNature()
    No longer used
    org.hibernate.boot.model.TypeContributions.contributeType(BasicType<?>)
    See discussion of TypeContributor in User Guide.
    org.hibernate.boot.model.TypeContributions.contributeType(BasicType<?>, String...)
    Use TypeContributions.contributeType(BasicType) instead.
    org.hibernate.boot.model.TypeContributions.contributeType(UserType<?>, String...)
    Use TypeContributions.contributeType(BasicType) instead.
    org.hibernate.boot.models.categorize.spi.EntityTypeMetadata.isSelectBeforeUpdate()
    Because Session.update(java.lang.Object) itself is deprecated
    org.hibernate.boot.SessionFactoryBuilder.enableJpaListCompliance(boolean)
    Use MappingSettings.DEFAULT_LIST_SEMANTICS instead
    org.hibernate.boot.spi.AdditionalMappingContributions.contributeBinding(JaxbHbmHibernateMapping)
    hbm.xml mapping file support is deprecated. Use extended orm.xml bindings instead.
    org.hibernate.boot.spi.EffectiveMappingDefaults.getDefaultListClassification()
    No longer supported
    org.hibernate.boot.spi.InFlightMetadataCollector.addAttributeConverter(Class<? extends AttributeConverter<?, ?>>)
    use InFlightMetadataCollector.getConverterRegistry()
    org.hibernate.boot.spi.InFlightMetadataCollector.addAttributeConverter(ConverterDescriptor)
    use InFlightMetadataCollector.getConverterRegistry()
    org.hibernate.boot.spi.InFlightMetadataCollector.addRegisteredConversion(RegisteredConversion)
    use InFlightMetadataCollector.getConverterRegistry()
    org.hibernate.boot.spi.InFlightMetadataCollector.addTypeDefinition(TypeDefinition)
    Use InFlightMetadataCollector.getTypeDefinitionRegistry() instead
    org.hibernate.boot.spi.InFlightMetadataCollector.getAttributeConverterAutoApplyHandler()
    use InFlightMetadataCollector.getConverterRegistry()
    org.hibernate.boot.spi.MetadataBuildingOptions.getManagedTypeRepresentationResolver()
    no longer called
    org.hibernate.bytecode.enhance.spi.EnhancementContext.doDirtyCheckingInline(UnloadedClass)
    Will be removed without replacement. See HHH-15641
    org.hibernate.bytecode.enhance.spi.EnhancementContext.hasLazyLoadableAttributes(UnloadedClass)
    Will be removed without replacement. See HHH-15641
    org.hibernate.bytecode.spi.BytecodeProvider.getReflectionOptimizer(Class, String[], String[], Class[])
    Use BytecodeProvider.getReflectionOptimizer(Class, Map) insstead
    org.hibernate.cache.internal.DisabledCaching.getCollectionRegionAccess(NavigableRole)
    org.hibernate.cache.internal.DisabledCaching.getEntityRegionAccess(NavigableRole)
    org.hibernate.cache.internal.DisabledCaching.getNaturalIdCacheRegionAccessStrategy(NavigableRole)
    org.hibernate.cache.internal.EnabledCaching.getCollectionRegionAccess(NavigableRole)
    org.hibernate.cache.internal.EnabledCaching.getEntityRegionAccess(NavigableRole)
    org.hibernate.cache.internal.EnabledCaching.getNaturalIdCacheRegionAccessStrategy(NavigableRole)
    org.hibernate.cache.spi.CacheImplementor.evictQueries()
    only because it's currently never called
    org.hibernate.classic.Lifecycle.onLoad(Session, Serializable)
    use Lifecycle.onLoad(Session, Object)
    org.hibernate.dialect.DatabaseVersion.makeCopy()
    In dialect implementations, prefer DatabaseVersion.makeCopyOrDefault(DatabaseVersion) to gracefully default to the minimum supported version.
    org.hibernate.dialect.DatabaseVersion.makeCopy(boolean)
    In dialect implementations, prefer DatabaseVersion.makeCopyOrDefault(DatabaseVersion) to gracefully default to the minimum supported version.
    org.hibernate.dialect.Dialect.getCheckCondition(String, long[])
    use Dialect.getCheckCondition(String, Long[]) instead
    org.hibernate.dialect.Dialect.getNoColumnsInsertString()
    Override the method renderInsertIntoNoColumns() on the translator returned by this dialect.
    org.hibernate.dialect.Dialect.isAnsiNullOn()
    This is only called from SybaseASESqlAstTranslator so it doesn't need to be declared here.
    org.hibernate.dialect.DialectDelegateWrapper.getNoColumnsInsertString()
    org.hibernate.dialect.DialectDelegateWrapper.isAnsiNullOn()
    org.hibernate.dialect.H2SqlAstTranslator.visitReturningInsertStatement(TableInsertStandard)
    org.hibernate.dialect.identity.H2FinalTableIdentityColumnSupport.render(TableInsert, Consumer<String>, Consumer<ColumnReference>, H2IdentityColumnSupport.InsertValuesHandler, SessionFactoryImplementor)
    org.hibernate.dialect.identity.H2IdentityColumnSupport.render(TableInsert, Consumer<String>, Consumer<ColumnReference>, H2IdentityColumnSupport.InsertValuesHandler, SessionFactoryImplementor)
    org.hibernate.dialect.identity.IdentityColumnSupport.appendIdentitySelectToInsert(String)
    Use IdentityColumnSupport.appendIdentitySelectToInsert(String, String) instead.
    org.hibernate.dialect.MySQLDialect.createVersion(DialectResolutionInfo)
    org.hibernate.dialect.MySQLDialect.getCharacterSetBytesPerCharacter(DatabaseMetaData)
    org.hibernate.dialect.MySQLServerConfiguration.fromDatabaseMetadata(DatabaseMetaData)
    Use MySQLServerConfiguration.fromDialectResolutionInfo(org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo) instead.
    org.hibernate.dialect.OracleDialect.isAutonomous(DialectResolutionInfo)
    org.hibernate.dialect.OracleDialect.isExtended(DialectResolutionInfo)
    org.hibernate.engine.internal.StatefulPersistenceContext.getCollectionEntries()
    We should not expose this directly: the other accessors that have been created as a replacement have better chances of skipping initializing this map, which is a good performance improvement.
    org.hibernate.engine.internal.StatefulPersistenceContext.getEntitiesByKey()
    this will be removed: it provides too wide access, making it hard to optimise the internals for specific access needs. Consider using #iterateEntities instead.
    org.hibernate.engine.internal.Versioning.seedVersion(Object[], int, EntityVersionMapping, SharedSessionContractImplementor)
    Use Versioning.seedVersion(Object, Object[], EntityPersister, SharedSessionContractImplementor)
    org.hibernate.engine.jdbc.env.spi.JdbcEnvironment.getQualifiedObjectNameFormatter()
    Use a provided SqlStringGenerationContext instead.
    org.hibernate.engine.jdbc.Size.getLobMultiplier()
    org.hibernate.engine.jdbc.Size.setLobMultiplier(Size.LobMultiplier)
    org.hibernate.engine.spi.AbstractDelegatingSharedSessionBuilder.connectionReleaseMode()
    org.hibernate.engine.spi.CascadingAction.noCascade(EventSource, Object, EntityPersister, Type, int)
    No longer used
    org.hibernate.engine.spi.CascadingAction.requiresNoCascadeChecking()
    No longer used
    org.hibernate.engine.spi.LoadQueryInfluencers.getInternalFetchProfile()
    Use LoadQueryInfluencers.getEnabledCascadingFetchProfile() instead
    org.hibernate.engine.spi.LoadQueryInfluencers.setInternalFetchProfile(String)
    Use LoadQueryInfluencers.setEnabledCascadingFetchProfile(org.hibernate.loader.ast.spi.CascadingFetchProfile) instead
    org.hibernate.engine.spi.PersistenceContext.getCollectionsByKey()
    this 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!
    org.hibernate.engine.spi.PersistenceContext.proxyFor(EntityHolder)
    Use PersistenceContext.proxyFor(EntityHolder, EntityPersister) instead.
    org.hibernate.engine.spi.PersistentAttributeInterceptor.attributeInitialized(String)
    Just as the method it overrides. Interceptors that deal with lazy state should implement BytecodeLazyAttributeInterceptor
    org.hibernate.engine.spi.PersistentAttributeInterceptor.getInitializedLazyAttributeNames()
    Just as the method it overrides. Interceptors that deal with lazy state should implement BytecodeLazyAttributeInterceptor
    org.hibernate.engine.spi.PersistentAttributeInterceptor.isAttributeLoaded(String)
    Interceptors that deal with * lazy state should implement BytecodeLazyAttributeInterceptor
    org.hibernate.engine.spi.SessionDelegatorBaseImpl.buildLockRequest(LockOptions)
    org.hibernate.engine.spi.SessionFactoryDelegatingImpl.getCollectionRolesByEntityParticipant(String)
    org.hibernate.engine.spi.SessionFactoryDelegatingImpl.getFilterDefinition(String)
    org.hibernate.engine.spi.SessionFactoryDelegatingImpl.getMetamodel()
    org.hibernate.engine.spi.SessionFactoryDelegatingImpl.resolveParameterBindType(Class<T>)
    org.hibernate.engine.spi.SessionFactoryDelegatingImpl.resolveParameterBindType(T)
    org.hibernate.engine.spi.SessionFactoryImplementor.getIdentifierGenerator(String)
    use SessionFactoryImplementor.getGenerator(String)
    org.hibernate.engine.spi.SessionFactoryImplementor.getMetamodel()
    no longer for internal use, use SessionFactoryImplementor.getMappingMetamodel() or SqmCreationContext.getJpaMetamodel()
    org.hibernate.engine.spi.SessionFactoryImplementor.resolveParameterBindType(Class<T>)
    Use SessionFactoryImplementor.getMappingMetamodel().QueryParameterBindingTypeResolver.resolveParameterBindType(Class)
    org.hibernate.engine.spi.SessionFactoryImplementor.resolveParameterBindType(T)
    Use SessionFactoryImplementor.getMappingMetamodel().QueryParameterBindingTypeResolver.resolveParameterBindType(Object)
    org.hibernate.engine.spi.SessionImplementor.delete(String, Object, boolean, DeleteContext)
    OperationalContext should cover this overload I believe
    org.hibernate.engine.spi.SessionImplementor.merge(String, Object, MergeContext)
    OperationalContext should cover this overload I believe
    org.hibernate.engine.spi.SessionImplementor.persist(String, Object, PersistContext)
    OperationalContext should cover this overload I believe
    org.hibernate.engine.spi.SessionImplementor.persistOnFlush(String, Object, PersistContext)
    OperationalContext should cover this overload I believe
    org.hibernate.engine.spi.SessionImplementor.refresh(String, Object, RefreshContext)
    OperationalContext should cover this overload I believe
    org.hibernate.engine.spi.SessionImplementor.removeOrphanBeforeUpdates(String, Object)
    OperationalContext should cover this overload I believe
    org.hibernate.engine.spi.SessionLazyDelegator.buildLockRequest(LockOptions)
    org.hibernate.engine.spi.SessionLazyDelegator.createNamedQuery(String)
    org.hibernate.engine.spi.SessionLazyDelegator.createNativeQuery(String)
    org.hibernate.engine.spi.SessionLazyDelegator.createNativeQuery(String, String)
    org.hibernate.engine.spi.SessionLazyDelegator.createQuery(CriteriaDelete)
    org.hibernate.engine.spi.SessionLazyDelegator.createQuery(CriteriaUpdate)
    org.hibernate.engine.spi.SessionLazyDelegator.createQuery(String)
    org.hibernate.engine.spi.SessionLazyDelegator.delete(Object)
    org.hibernate.engine.spi.SessionLazyDelegator.delete(String, Object)
    org.hibernate.engine.spi.SessionLazyDelegator.getNamedNativeQuery(String)
    org.hibernate.engine.spi.SessionLazyDelegator.getNamedNativeQuery(String, String)
    org.hibernate.engine.spi.SessionLazyDelegator.getNamedQuery(String)
    org.hibernate.engine.spi.SessionLazyDelegator.load(Class<T>, Object)
    org.hibernate.engine.spi.SessionLazyDelegator.load(Class<T>, Object, LockMode)
    org.hibernate.engine.spi.SessionLazyDelegator.load(Class<T>, Object, LockOptions)
    org.hibernate.engine.spi.SessionLazyDelegator.load(String, Object)
    org.hibernate.engine.spi.SessionLazyDelegator.load(String, Object, LockMode)
    org.hibernate.engine.spi.SessionLazyDelegator.load(String, Object, LockOptions)
    org.hibernate.engine.spi.SessionLazyDelegator.lock(String, Object, LockMode)
    org.hibernate.engine.spi.SessionLazyDelegator.refresh(String, Object)
    org.hibernate.engine.spi.SessionLazyDelegator.refresh(String, Object, LockOptions)
    org.hibernate.engine.spi.SessionLazyDelegator.replicate(Object, ReplicationMode)
    org.hibernate.engine.spi.SessionLazyDelegator.replicate(String, Object, ReplicationMode)
    org.hibernate.engine.spi.SessionLazyDelegator.save(Object)
    org.hibernate.engine.spi.SessionLazyDelegator.save(String, Object)
    org.hibernate.engine.spi.SessionLazyDelegator.saveOrUpdate(Object)
    org.hibernate.engine.spi.SessionLazyDelegator.saveOrUpdate(String, Object)
    org.hibernate.engine.spi.SessionLazyDelegator.update(Object)
    org.hibernate.engine.spi.SessionLazyDelegator.update(String, Object)
    org.hibernate.engine.spi.SharedSessionContractImplementor.getFlushMode()
    there's no good reason to expose this here
    org.hibernate.engine.spi.SharedSessionContractImplementor.isAutoCloseSessionEnabled()
    there's no reason to expose this here
    org.hibernate.engine.spi.SharedSessionContractImplementor.setAutoClear(boolean)
    there's no good reason to expose this here
    org.hibernate.engine.spi.SharedSessionContractImplementor.shouldAutoClose()
    there's no reason to expose this here
    org.hibernate.event.service.spi.EventListenerGroup.clear()
    likely want to use EventListenerGroup.clearListeners() instead, which doesn't also reset the registered DuplicationStrategy(ies).
    org.hibernate.event.service.spi.EventListenerGroup.listeners()
    this is not the most efficient way for iterating the event listeners. See EventListenerGroup.fireEventOnEachListener(Object, BiConsumer) and its overloaded variants for better alternatives.
    org.hibernate.exception.internal.StandardSQLExceptionConverter.addDelegate(SQLExceptionConversionDelegate)
    use StandardSQLExceptionConverter(SQLExceptionConversionDelegate...)
    org.hibernate.Filter.getFilterDefinition()
    There is no plan to remove this operation, but its use should be avoided since FilterDefinition is an SPI type, and so this operation is a layer-breaker.
    org.hibernate.graph.GraphSemantic.fromJpaHintName(String)
    Use GraphSemantic.fromHintName(java.lang.String) instead
    org.hibernate.graph.GraphSemantic.getJpaHintName()
    Use GraphSemantic.getJakartaHintName() instead
    org.hibernate.id.enhanced.DatabaseStructure.getAllSqlForTests()
    Exposed for tests only.
    org.hibernate.id.enhanced.DatabaseStructure.prepare(Optimizer)
    Use DatabaseStructure.configure(Optimizer) instead.
    org.hibernate.id.enhanced.TableGenerator.getAllSqlForTests()
    Exposed for tests only.
    org.hibernate.id.IncrementGenerator.getAllSqlForTests()
    Exposed for tests only.
    org.hibernate.IdentifierLoadAccess.with(RootGraph<T>)
    use IdentifierLoadAccess.withLoadGraph(org.hibernate.graph.RootGraph<T>)
    org.hibernate.integrator.spi.Integrator.integrate(Metadata, SessionFactoryImplementor, SessionFactoryServiceRegistry)
    - use
    org.hibernate.Interceptor.findDirty(Object, Serializable, Object[], Object[], String[], Type[])
    use Interceptor.findDirty(Object, Object, Object[], Object[], String[], Type[])
    org.hibernate.Interceptor.getEntity(String, Serializable)
    use Interceptor.getEntity(String, Object)
    org.hibernate.Interceptor.onCollectionRecreate(Object, Serializable)
    use Interceptor.onCollectionRecreate(Object, Object)
    org.hibernate.Interceptor.onCollectionRemove(Object, Serializable)
    use Interceptor.onCollectionRemove(Object, Object)
    org.hibernate.Interceptor.onCollectionUpdate(Object, Serializable)
    use Interceptor.onCollectionUpdate(Object, Object)
    org.hibernate.Interceptor.onDelete(Object, Serializable, Object[], String[], Type[])
    use Interceptor.onDelete(Object, Object, Object[], String[], Type[])
    org.hibernate.Interceptor.onDelete(Object, Object, Object[], String[], Type[])
    Use Interceptor.onRemove(Object, Object, Object[], String[], Type[])
    org.hibernate.Interceptor.onFlushDirty(Object, Serializable, Object[], Object[], String[], Type[])
    use Interceptor.onFlushDirty(Object, Object, Object[], Object[], String[], Type[])
    org.hibernate.Interceptor.onLoad(Object, Serializable, Object[], String[], Type[])
    use Interceptor.onLoad(Object, Object, Object[], String[], Type[])
    org.hibernate.Interceptor.onSave(Object, Serializable, Object[], String[], Type[])
    use Interceptor.onSave(Object, Object, Object[], String[], Type[])
    org.hibernate.Interceptor.onSave(Object, Object, Object[], String[], Type[])
    Use Interceptor.onPersist(Object, Object, Object[], String[], Type[])
    org.hibernate.internal.CoreMessageLogger.batchContainedStatementsOnRelease()
    Use JdbcBatchLogging.batchContainedStatementsOnRelease() instead
    org.hibernate.internal.CoreMessageLogger.disablingContextualLOBCreation(String)
    Use LobCreationLogging.disablingContextualLOBCreation(java.lang.String) instead
    org.hibernate.internal.CoreMessageLogger.disablingContextualLOBCreationSinceConnectionNull()
    Use LobCreationLogging.disablingContextualLOBCreationSinceConnectionNull() instead
    org.hibernate.internal.CoreMessageLogger.disablingContextualLOBCreationSinceCreateClobFailed(Throwable)
    Use LobCreationLogging.contextualClobCreationFailed(java.lang.Throwable) instead
    org.hibernate.internal.CoreMessageLogger.disablingContextualLOBCreationSinceOldJdbcVersion(int)
    Use LobCreationLogging.nonContextualLobCreationJdbcVersion(int) instead
    org.hibernate.internal.CoreMessageLogger.unableToExecuteBatch(Exception, String)
    Use JdbcBatchLogging.unableToExecuteBatch(java.lang.Exception, java.lang.String) instead
    org.hibernate.internal.CoreMessageLogger.unableToReleaseBatchStatement()
    Use JdbcBatchLogging.unableToReleaseBatchStatement() instead
    org.hibernate.internal.CoreMessageLogger.unexpectedRowCounts()
    Use JdbcLogging.unexpectedRowCounts(java.lang.String, int, int) instead
    org.hibernate.internal.CoreMessageLogger.usingDialect(Dialect)
    Use DialectLogging.usingDialect(org.hibernate.dialect.Dialect) instead
    org.hibernate.internal.FastSessionServices.getDefaultTimeZoneStorageStrategy()
    org.hibernate.internal.FastSessionServices.getMutationExecutorService()
    org.hibernate.internal.JdbcSessionContextImpl.getObserver()
    org.hibernate.internal.JdbcSessionContextImpl.getServiceRegistry()
    org.hibernate.internal.JdbcSessionContextImpl.getSessionFactory()
    org.hibernate.internal.SessionFactoryImpl.configuredInterceptor(Interceptor, SessionFactoryOptions)
    use SessionFactoryImpl.configuredInterceptor(Interceptor, boolean, SessionFactoryOptions)
    org.hibernate.internal.SessionFactoryImpl.getGenerator(String)
    org.hibernate.internal.SessionFactoryImpl.getIdentifierGenerator(String)
    org.hibernate.internal.SessionImpl.buildLockRequest(LockOptions)
    org.hibernate.internal.SessionImpl.delete(Object)
    org.hibernate.internal.SessionImpl.delete(String, Object)
    org.hibernate.internal.SessionImpl.load(Class<T>, Object)
    org.hibernate.internal.SessionImpl.load(Class<T>, Object, LockMode)
    org.hibernate.internal.SessionImpl.load(Class<T>, Object, LockOptions)
    org.hibernate.internal.SessionImpl.load(String, Object)
    org.hibernate.internal.SessionImpl.load(String, Object, LockMode)
    org.hibernate.internal.SessionImpl.load(String, Object, LockOptions)
    org.hibernate.internal.SessionImpl.refresh(String, Object)
    org.hibernate.internal.SessionImpl.refresh(String, Object, LockOptions)
    org.hibernate.internal.SessionImpl.save(Object)
    org.hibernate.internal.SessionImpl.save(String, Object)
    org.hibernate.internal.SessionImpl.saveOrUpdate(Object)
    org.hibernate.internal.SessionImpl.saveOrUpdate(String, Object)
    org.hibernate.internal.SessionImpl.update(Object)
    org.hibernate.internal.SessionImpl.update(String, Object)
    org.hibernate.internal.util.ReflectHelper.classForName(String)
    Depending on context, either ClassLoaderService or ClassLoaderAccess should be preferred
    org.hibernate.jpa.spi.JpaCompliance.isJpaListComplianceEnabled()
    Use MappingSettings.DEFAULT_LIST_SEMANTICS instead
    org.hibernate.loader.ast.spi.BatchLoaderFactory.createEntityBatchLoader(int, EntityMappingType, SessionFactoryImplementor)
    Use BatchLoaderFactory.createEntityBatchLoader(int, EntityMappingType, LoadQueryInfluencers) instead
    org.hibernate.loader.ast.spi.Loadable.isAffectedByEnabledFilters(LoadQueryInfluencers)
    Use Loadable.isAffectedByEnabledFilters(LoadQueryInfluencers, boolean) instead
    org.hibernate.loader.ast.spi.Loadable.isAffectedByInfluencers(LoadQueryInfluencers)
    Use Loadable.isAffectedByInfluencers(LoadQueryInfluencers, boolean) instead
    org.hibernate.loader.internal.NaturalIdLoadAccessImpl.using(Object...)
    org.hibernate.LockOptions.getAliasLockIterator()
    use LockOptions.getAliasSpecificLocks()
    org.hibernate.LockOptions.getScope()
    use LockOptions.getLockScope()
    org.hibernate.LockOptions.setScope(boolean)
    use LockOptions.setLockScope(PessimisticLockScope)
    org.hibernate.mapping.CheckConstraint.constraintString()
    use CheckConstraint.constraintString(Dialect) instead.
    org.hibernate.mapping.Column.checkConstraint()
    org.hibernate.mapping.Column.getCheckConstraint()
    org.hibernate.mapping.Column.getSqlType(TypeConfiguration, Dialect, Mapping)
    use Column.getSqlType(Metadata)
    org.hibernate.mapping.Column.setCheckConstraint(String)
    org.hibernate.mapping.Index.getColumnOrderMap()
    use Index.getSelectableOrderMap()
    org.hibernate.mapping.Index.getColumns()
    use Index.getSelectables()
    org.hibernate.mapping.Selectable.getAlias(Dialect)
    new read-by-position paradigm means that these generated aliases are no longer needed
    org.hibernate.mapping.Selectable.getAlias(Dialect, Table)
    new read-by-position paradigm means that these generated aliases are no longer needed
    org.hibernate.mapping.SimpleValue.isCascadeDeleteEnabled()
    use SimpleValue.getOnDeleteAction()
    org.hibernate.mapping.SimpleValue.setCascadeDeleteEnabled(boolean)
    use SimpleValue.setOnDeleteAction(OnDeleteAction)
    org.hibernate.mapping.Table.addCheckConstraint(String)
    org.hibernate.mapping.Table.addInitCommand(InitCommand)
    Use Table.addInitCommand(Function) instead.
    org.hibernate.mapping.Table.qualify(String, String, String)
    Should build a QualifiedTableName then use SqlStringGenerationContext.format(QualifiedTableName).
    org.hibernate.mapping.Table.sqlAlterStrings(Dialect, Metadata, TableInformation, SqlStringGenerationContext)
    org.hibernate.metamodel.mapping.DiscriminatedAssociationModelPart.getDiscriminatorPart()
    Use Discriminable.getDiscriminatorMapping() instead.
    org.hibernate.metamodel.mapping.EntityMappingType.extractConcreteTypeStateValues(Map<AttributeMapping, DomainResultAssembler>, RowProcessingState)
    org.hibernate.metamodel.mapping.EntityMappingType.getContributor()
    See Contributable.getContributor()
    org.hibernate.metamodel.mapping.FilterRestrictable.applyFilterRestrictions(Consumer<Predicate>, TableGroup, boolean, Map<String, Filter>, SqlAstCreationState)
    Use FilterRestrictable.applyFilterRestrictions(Consumer, TableGroup, boolean, Map, boolean, SqlAstCreationState) instead
    org.hibernate.metamodel.mapping.internal.MutableAttributeMappingList.getSingularAttributeMapping(int)
    should be removed
    org.hibernate.metamodel.mapping.Restrictable.applyBaseRestrictions(Consumer<Predicate>, TableGroup, boolean, Map<String, Filter>, Set<String>, SqlAstCreationState)
    Use Restrictable.applyBaseRestrictions(Consumer, TableGroup, boolean, Map, boolean, Set, SqlAstCreationState) instead
    org.hibernate.metamodel.MappingMetamodel.locateEntityPersister(Class<?>)
    use MappingMetamodel.locateEntityDescriptor(Class) instead
    org.hibernate.metamodel.MappingMetamodel.locateEntityPersister(String)
    - use MappingMetamodel.getEntityDescriptor(String) instead
    org.hibernate.metamodel.model.domain.internal.EntityPersisterConcurrentMap.convertToMap()
    Higly inefficient - do not use; this exists to support other deprecated methods and will be removed.
    org.hibernate.metamodel.RuntimeMetamodels.getEmbedded(String)
    Use RuntimeMetamodels.getEmbedded(NavigableRole) instead
    org.hibernate.metamodel.spi.MetamodelImplementor.collectionPersister(String)
    Use MappingMetamodel.getCollectionDescriptor(java.lang.String) instead
    org.hibernate.metamodel.spi.MetamodelImplementor.collectionPersisters()
    With no direct replacement; see MappingMetamodel.forEachCollectionDescriptor(java.util.function.Consumer<org.hibernate.persister.collection.CollectionPersister>) and MappingMetamodel.streamCollectionDescriptors() instead
    org.hibernate.metamodel.spi.MetamodelImplementor.entityPersister(Class<?>)
    Use MappingMetamodel.getEntityDescriptor(java.lang.String) instead
    org.hibernate.metamodel.spi.MetamodelImplementor.entityPersister(String)
    Use MappingMetamodel.getEntityDescriptor(java.lang.String) instead
    org.hibernate.metamodel.spi.MetamodelImplementor.entityPersisters()
    With no direct replacement; see MappingMetamodel.forEachEntityDescriptor(java.util.function.Consumer<org.hibernate.persister.entity.EntityPersister>) and MappingMetamodel.streamEntityDescriptors() instead
    org.hibernate.metamodel.spi.MetamodelImplementor.getCollectionRolesByEntityParticipant(String)
    Use MappingMetamodelImplementor.getCollectionRolesByEntityParticipant(java.lang.String) and MappingMetamodel.streamCollectionDescriptors() instead
    org.hibernate.metamodel.spi.MetamodelImplementor.getEntityNameResolvers()
    Use MappingMetamodelImplementor.getEntityNameResolvers() instead
    org.hibernate.MultiIdentifierLoadAccess.with(RootGraph<T>)
    use MultiIdentifierLoadAccess.withLoadGraph(org.hibernate.graph.RootGraph<T>)
    org.hibernate.NaturalIdLoadAccess.using(Object...)
    use NaturalIdLoadAccess.using(Map) with Map.of(), which is slightly more typesafe
    org.hibernate.NaturalIdMultiLoadAccess.compoundValue(Object...)
    use Map.of() instead
    org.hibernate.NaturalIdMultiLoadAccess.with(RootGraph<T>)
    use NaturalIdMultiLoadAccess.withLoadGraph(org.hibernate.graph.RootGraph<T>)
    org.hibernate.persister.collection.AbstractCollectionPersister.getIdentifierGenerator()
    org.hibernate.persister.collection.CollectionPersister.getCollectionType()
    Hibernate is moving away from Type. Corresponding mapping metamodel calls should be used instead - here (generally), PluralAttributeMapping
    org.hibernate.persister.collection.CollectionPersister.getElementColumnAliases(String)
    Read-by-position makes this irrelevant. Currently still used by SQLQueryParser
    org.hibernate.persister.collection.CollectionPersister.getElementType()
    Hibernate is moving away from Type. Corresponding mapping metamodel calls should be used instead - here, PluralAttributeMapping.getElementDescriptor()
    org.hibernate.persister.collection.CollectionPersister.getIdentifierColumnAlias(String)
    Read-by-position makes this irrelevant. Currently still used by SQLQueryParser
    org.hibernate.persister.collection.CollectionPersister.getIdentifierGenerator()
    use CollectionPersister.getGenerator()
    org.hibernate.persister.collection.CollectionPersister.getIdentifierType()
    Hibernate is moving away from Type. Corresponding mapping metamodel calls should be used instead - here, PluralAttributeMapping.getIdentifierDescriptor()
    org.hibernate.persister.collection.CollectionPersister.getIndexColumnAliases(String)
    Read-by-position makes this irrelevant. Currently still used by SQLQueryParser
    org.hibernate.persister.collection.CollectionPersister.getIndexType()
    Hibernate is moving away from Type. Corresponding mapping metamodel calls should be used instead - here, PluralAttributeMapping.getIndexDescriptor()
    org.hibernate.persister.collection.CollectionPersister.getKeyColumnAliases(String)
    Read-by-position makes this irrelevant. Currently still used by SQLQueryParser
    org.hibernate.persister.collection.CollectionPersister.getKeyType()
    Hibernate is moving away from Type. Corresponding mapping metamodel calls should be used instead - here, PluralAttributeMapping.getKeyDescriptor()
    org.hibernate.persister.entity.AbstractEntityPersister.getIdentifierGenerator()
    org.hibernate.persister.entity.AbstractEntityPersister.getPropertyType(String)
    by the supertypes
    org.hibernate.persister.entity.AbstractEntityPersister.getSubclassColumnAliasClosure()
    Hibernate no longer uses aliases to read from result sets
    org.hibernate.persister.entity.AbstractEntityPersister.getSubclassFormulaAliasClosure()
    Hibernate no longer uses aliases to read from result sets
    org.hibernate.persister.entity.AbstractEntityPersister.getSubclassPropertyColumnAliases(String, String)
    Hibernate no longer uses aliases to read from result sets
    org.hibernate.persister.entity.AbstractEntityPersister.initSubclassPropertyAliasesMap(PersistentClass)
    Hibernate no longer uses aliases to read from result sets
    org.hibernate.persister.entity.EntityPersister.canExtractIdOutOfEntity()
    This feature is no longer supported
    org.hibernate.persister.entity.EntityPersister.delete(Object, Object, Object, SharedSessionContractImplementor)
    Use DeleteCoordinator.delete(java.lang.Object, java.lang.Object, java.lang.Object, org.hibernate.engine.spi.SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.EntityPersister.getDiscriminatorColumnName()
    Use SelectableMapping.getSelectionExpression() instead
    org.hibernate.persister.entity.EntityPersister.getIdentifierGenerator()
    use EntityPersister.getGenerator()
    org.hibernate.persister.entity.EntityPersister.getPropertyType(String)
    See ManagedMappingType.findAttributeMapping(String)
    org.hibernate.persister.entity.EntityPersister.getPropertyValue(Object, int)
    Use EntityPersister.getValue(java.lang.Object, int) instead
    org.hibernate.persister.entity.EntityPersister.getPropertyValues(Object)
    Use EntityPersister.getValues(java.lang.Object) instead
    org.hibernate.persister.entity.EntityPersister.getSynchronizationSpaces()
    No longer called
    org.hibernate.persister.entity.EntityPersister.getTableName(int)
    Only ever used from places where we really want to use
    • SelectStatement (select generator)
    • InsertSelectStatement
    • UpdateStatement
    • DeleteStatement
    org.hibernate.persister.entity.EntityPersister.hasCache()
    Use EntityPersister.canReadFromCache() and/or EntityPersister.canWriteToCache() depending on need
    org.hibernate.persister.entity.EntityPersister.insert(Object[], Object, SharedSessionContractImplementor)
    Use InsertCoordinator.insert(Object, Object[], SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.EntityPersister.insert(Object, Object[], Object, SharedSessionContractImplementor)
    Use InsertCoordinator.insert(Object, Object, Object[], SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.EntityPersister.load(Object, Object, LockMode, SharedSessionContractImplementor, Boolean)
    Use EntityPersister.load(Object, Object, LockMode, SharedSessionContractImplementor)
    org.hibernate.persister.entity.EntityPersister.merge(Object, Object[], int[], boolean, Object[], Object, Object, Object, SharedSessionContractImplementor)
    Use UpdateCoordinator.update(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object[], java.lang.Object, java.lang.Object[], int[], boolean, org.hibernate.engine.spi.SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.EntityPersister.processInsertGeneratedProperties(Object, Object, Object[], SharedSessionContractImplementor)
    Use EntityPersister.processInsertGeneratedProperties(Object, Object, Object[], GeneratedValues, SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.EntityPersister.processUpdateGeneratedProperties(Object, Object, Object[], SharedSessionContractImplementor)
    Use EntityPersister.processUpdateGeneratedProperties(Object, Object, Object[], GeneratedValues, SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.EntityPersister.setPropertyValue(Object, int, Object)
    Use EntityPersister.setValue(java.lang.Object, int, java.lang.Object) instead
    org.hibernate.persister.entity.EntityPersister.setPropertyValues(Object, Object[])
    Use EntityPersister.setValues(java.lang.Object, java.lang.Object[]) instead
    org.hibernate.persister.entity.EntityPersister.toColumns(String)
    No longer used in ORM core
    org.hibernate.persister.entity.EntityPersister.update(Object, Object[], int[], boolean, Object[], Object, Object, Object, SharedSessionContractImplementor)
    Use UpdateCoordinator.update(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object[], java.lang.Object, java.lang.Object[], int[], boolean, org.hibernate.engine.spi.SharedSessionContractImplementor) instead.
    org.hibernate.persister.entity.mutation.EntityMutationTarget.getIdentityInsertDelegate()
    use EntityMutationTarget.getInsertDelegate() instead
    org.hibernate.persister.entity.mutation.EntityMutationTarget.hasSkippableTables()
    No longer called
    org.hibernate.persister.entity.mutation.InsertCoordinatorStandard.getInsertBatchKey()
    Use InsertCoordinatorStandard.getBatchKey()
    org.hibernate.persister.entity.SingleTableEntityPersister.getSubclassClosure()
    No longer used.
    org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyHelper.buildUnloadedProxy(Class<?>, Class<?>[])
    Use ByteBuddyProxyHelper.buildUnloadedProxy(TypePool, TypeDefinition, Collection) instead.
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayContainsAll(Expression<T[]>, Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIncludes(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayContainsAll(Expression<T[]>, T[])
    Replaced with HibernateCriteriaBuilder.arrayIncludes(Expression, Object[])
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayContainsAll(T[], Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIncludes(Object[], Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayContainsAllNullable(Expression<T[]>, Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIncludesNullable(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayContainsAllNullable(Expression<T[]>, T[])
    Replaced with HibernateCriteriaBuilder.arrayIncludesNullable(Expression, Object[])
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayContainsAllNullable(T[], Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIncludesNullable(Object[], Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayOverlaps(Expression<T[]>, Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIntersects(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayOverlaps(Expression<T[]>, T[])
    Replaced with HibernateCriteriaBuilder.arrayIntersects(Expression, Object[])
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayOverlaps(T[], Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIntersects(Object[], Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayOverlapsNullable(Expression<T[]>, Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIntersectsNullable(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayOverlapsNullable(Expression<T[]>, T[])
    Replaced with HibernateCriteriaBuilder.arrayIntersectsNullable(Expression, Object[])
    org.hibernate.query.criteria.HibernateCriteriaBuilder.arrayOverlapsNullable(T[], Expression<T[]>)
    Replaced with HibernateCriteriaBuilder.arrayIntersectsNullable(Object[], jakarta.persistence.criteria.Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionContainsAll(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIncludes(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionContainsAll(Expression<? extends Collection<E>>, Collection<? extends E>)
    Replaced with HibernateCriteriaBuilder.collectionIncludes(Expression, Collection)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionContainsAll(Collection<E>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIncludes(Collection, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionContainsAllNullable(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIncludesNullable(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionContainsAllNullable(Expression<? extends Collection<E>>, Collection<? extends E>)
    Replaced with HibernateCriteriaBuilder.collectionIncludesNullable(Expression, Collection)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionContainsAllNullable(Collection<E>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIncludesNullable(Collection, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionOverlaps(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIntersects(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionOverlaps(Expression<? extends Collection<E>>, Collection<? extends E>)
    Replaced with HibernateCriteriaBuilder.collectionIntersects(Expression, Collection)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionOverlaps(Collection<E>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIntersects(Collection, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionOverlapsNullable(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIntersectsNullable(Expression, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionOverlapsNullable(Expression<? extends Collection<E>>, Collection<? extends E>)
    Replaced with HibernateCriteriaBuilder.collectionIntersectsNullable(Expression, Collection)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.collectionOverlapsNullable(Collection<E>, Expression<? extends Collection<? extends E>>)
    Replaced with HibernateCriteriaBuilder.collectionIntersectsNullable(Collection, Expression)
    org.hibernate.query.criteria.HibernateCriteriaBuilder.sort(JpaExpression<?>, SortDirection, NullPrecedence)
    Use HibernateCriteriaBuilder.sort(JpaExpression, SortDirection, Nulls) instead
    org.hibernate.query.criteria.HibernateCriteriaBuilder.sort(JpaExpression<?>, SortDirection, NullPrecedence, boolean)
    Use HibernateCriteriaBuilder.sort(JpaExpression, SortDirection, Nulls, boolean) instead
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayContainsAll(Expression<T[]>, Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayContainsAll(Expression<T[]>, T[])
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayContainsAll(T[], Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayContainsAllNullable(Expression<T[]>, Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayContainsAllNullable(Expression<T[]>, T[])
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayContainsAllNullable(T[], Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayOverlaps(Expression<T[]>, Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayOverlaps(Expression<T[]>, T[])
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayOverlaps(T[], Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayOverlapsNullable(Expression<T[]>, Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayOverlapsNullable(Expression<T[]>, T[])
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.arrayOverlapsNullable(T[], Expression<T[]>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionContainsAll(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionContainsAll(Expression<? extends Collection<E>>, Collection<? extends E>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionContainsAll(Collection<E>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionContainsAllNullable(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionContainsAllNullable(Expression<? extends Collection<E>>, Collection<? extends E>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionContainsAllNullable(Collection<E>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionOverlaps(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionOverlaps(Expression<? extends Collection<E>>, Collection<? extends E>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionOverlaps(Collection<E>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionOverlapsNullable(Expression<? extends Collection<E>>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionOverlapsNullable(Expression<? extends Collection<E>>, Collection<? extends E>)
    org.hibernate.query.criteria.spi.HibernateCriteriaBuilderDelegate.collectionOverlapsNullable(Collection<E>, Expression<? extends Collection<? extends E>>)
    org.hibernate.query.hql.spi.SqmQueryImplementor.setResultTransformer(ResultTransformer<T>)
    org.hibernate.query.NativeQuery.setResultTransformer(ResultTransformer<S>)
    org.hibernate.query.NullPrecedence.isDefaultOrdering(SortDirection, NullOrdering)
    No longer called
    org.hibernate.query.Query.setResultTransformer(ResultTransformer<T>)
    Use Query.setTupleTransformer(org.hibernate.query.TupleTransformer<T>) or Query.setResultListTransformer(org.hibernate.query.ResultListTransformer<R>)
    org.hibernate.query.QueryProducer.createNamedQuery(String)
    use QueryProducer.createNamedQuery(String, Class)
    org.hibernate.query.QueryProducer.createNamedSelectionQuery(String)
    use QueryProducer.createNamedSelectionQuery(String, Class)
    org.hibernate.query.QueryProducer.createNativeQuery(String)
    use QueryProducer.createNativeQuery(String, Class)
    org.hibernate.query.QueryProducer.createNativeQuery(String, String)
    use QueryProducer.createNativeQuery(String, String, Class)
    org.hibernate.query.QueryProducer.createQuery(CriteriaDelete)
    use QueryProducer.createMutationQuery(CriteriaDelete)
    org.hibernate.query.QueryProducer.createQuery(CriteriaUpdate)
    use QueryProducer.createMutationQuery(CriteriaUpdate)
    org.hibernate.query.QueryProducer.createQuery(String)
    use QueryProducer.createQuery(String, Class), QueryProducer.createSelectionQuery(String, Class), or QueryProducer.createMutationQuery(String) depending on intention
    org.hibernate.query.QueryProducer.createSelectionQuery(String)
    Use QueryProducer.createSelectionQuery(String, Class)
    org.hibernate.query.QueryProducer.getNamedNativeQuery(String)
    use QueryProducer.createNamedQuery(String, Class)
    org.hibernate.query.QueryProducer.getNamedNativeQuery(String, String)
    use QueryProducer.createNamedQuery(String, Class)
    org.hibernate.query.QueryProducer.getNamedQuery(String)
    use QueryProducer.createNamedQuery(String, Class)
    org.hibernate.query.SelectionQuery.setAliasSpecificLockMode(String, LockMode)
    use SelectionQuery.setLockMode(String, LockMode)
    org.hibernate.query.spi.AbstractSelectionQuery.setAliasSpecificLockMode(String, LockMode)
    use {AbstractSelectionQuery.setLockMode(String, LockMode)}
    org.hibernate.query.spi.QueryImplementor.setResultTransformer(ResultTransformer<T>)
    org.hibernate.query.spi.QueryProducerImplementor.createNamedQuery(String)
    org.hibernate.query.spi.QueryProducerImplementor.createNativeQuery(String)
    org.hibernate.query.spi.QueryProducerImplementor.createNativeQuery(String, String)
    org.hibernate.query.spi.QueryProducerImplementor.createQuery(CriteriaDelete)
    org.hibernate.query.spi.QueryProducerImplementor.createQuery(CriteriaUpdate)
    org.hibernate.query.spi.QueryProducerImplementor.createQuery(String)
    org.hibernate.query.spi.QueryProducerImplementor.getNamedNativeQuery(String)
    org.hibernate.query.spi.QueryProducerImplementor.getNamedNativeQuery(String, String)
    org.hibernate.query.sql.internal.NativeQueryImpl.setResultTransformer(ResultTransformer<S>)
    org.hibernate.query.sql.spi.NativeQueryImplementor.setResultTransformer(ResultTransformer<T>)
    org.hibernate.query.sqm.function.FunctionRenderer.render(SqlAppender, List<? extends SqlAstNode>, SqlAstTranslator<?>)
    Use FunctionRenderer.render(SqlAppender, List, ReturnableType, SqlAstTranslator) instead
    org.hibernate.query.sqm.internal.SqmSelectionQueryImpl.setAliasSpecificLockMode(String, LockMode)
    use {SqmSelectionQueryImpl.setLockMode(String, LockMode)}
    org.hibernate.query.sqm.produce.function.ArgumentsValidator.validate(List<? extends SqmTypedNode<?>>, String, QueryEngine)
    Use ArgumentsValidator.validate(List, String, TypeConfiguration)
    org.hibernate.query.sqm.produce.function.FunctionReturnTypeResolver.resolveFunctionReturnType(ReturnableType<?>, Supplier<MappingModelExpressible<?>>, List<? extends SqmTypedNode<?>>, TypeConfiguration)
    Use FunctionReturnTypeResolver.resolveFunctionReturnType(ReturnableType, SqmToSqlAstConverter, List, TypeConfiguration) instead
    org.hibernate.query.sqm.spi.DelegatingSqmSelectionQueryImplementor.setAliasSpecificLockMode(String, LockMode)
    org.hibernate.query.sqm.tree.from.SqmAttributeJoin.makeCopy(SqmCreationProcessingState)
    org.hibernate.resource.jdbc.spi.JdbcSessionContext.getObserver()
    since JdbcObserver is deprecated
    org.hibernate.resource.jdbc.spi.JdbcSessionContext.getServiceRegistry()
    this is no longer called, and unnecessary, since the needed services are now available via JdbcSessionContext.getJdbcServices()
    org.hibernate.resource.jdbc.spi.JdbcSessionContext.getSessionFactory()
    exposing this here seems to kinda defeat the purpose of this SPI
    org.hibernate.Session.buildLockRequest(LockOptions)
    use Session.lock(Object, LockOptions)
    org.hibernate.Session.createNamedQuery(String)
    org.hibernate.Session.createQuery(CriteriaDelete)
    use QueryProducer.createMutationQuery(CriteriaDelete)
    org.hibernate.Session.createQuery(CriteriaUpdate)
    use QueryProducer.createMutationQuery(CriteriaUpdate)
    org.hibernate.Session.createQuery(String)
    org.hibernate.Session.delete(Object)
    use Session.remove(Object)
    org.hibernate.Session.delete(String, Object)
    use Session.remove(Object)
    org.hibernate.Session.load(Class<T>, Object)
    use Session.getReference(Class, Object)
    org.hibernate.Session.load(Class<T>, Object, LockMode)
    use Session.get(Class, Object, LockMode)
    org.hibernate.Session.load(Class<T>, Object, LockOptions)
    use Session.get(Class, Object, LockOptions)
    org.hibernate.Session.load(String, Object)
    use Session.getReference(String, Object)
    org.hibernate.Session.load(String, Object, LockMode)
    use Session.get(String, Object, LockMode)
    org.hibernate.Session.load(String, Object, LockOptions)
    use Session.get(String, Object, LockOptions)
    org.hibernate.Session.lock(String, Object, LockMode)
    use Session.lock(Object, LockMode)
    org.hibernate.Session.LockRequest.getScope()
    use Session.LockRequest.getLockScope()
    org.hibernate.Session.LockRequest.lock(String, Object)
    use Session.LockRequest.lock(Object)
    org.hibernate.Session.LockRequest.setScope(boolean)
    use Session.LockRequest.setLockScope(PessimisticLockScope)
    org.hibernate.Session.refresh(String, Object)
    use Session.refresh(Object)
    org.hibernate.Session.refresh(String, Object, LockOptions)
    use Session.refresh(Object, LockOptions)
    org.hibernate.Session.replicate(Object, ReplicationMode)
    With no real replacement
    org.hibernate.Session.replicate(String, Object, ReplicationMode)
    With no real replacement
    org.hibernate.Session.save(Object)
    use Session.persist(Object)
    org.hibernate.Session.save(String, Object)
    use Session.persist(String, Object)
    org.hibernate.Session.saveOrUpdate(Object)
    use Session.merge(String, Object) or Session.persist(Object)
    org.hibernate.Session.saveOrUpdate(String, Object)
    use Session.merge(String, Object) or Session.persist(String, Object)
    org.hibernate.Session.update(Object)
    use Session.merge(Object)
    org.hibernate.Session.update(String, Object)
    use Session.merge(String, Object)
    org.hibernate.SessionBuilder.tenantIdentifier(String)
    Use SessionBuilder.tenantIdentifier(Object) instead
    org.hibernate.SessionFactory.getFilterDefinition(String)
    There is no plan to remove this operation, but its use should be avoided since FilterDefinition is an SPI type, and so this operation is a layer-breaker.
    org.hibernate.SessionFactory.getSessionFactoryOptions()
    There is no plan to remove this operation, but its use should be avoided since SessionFactoryOptions is an SPI type, and so this operation is a layer-breaker.
    org.hibernate.SharedSessionBuilder.connectionReleaseMode()
    use SharedSessionBuilder.connectionHandlingMode() instead.
    org.hibernate.SharedSessionBuilder.tenantIdentifier(String)
    org.hibernate.sql.exec.spi.JdbcOperationQuery.getAppliedParameters()
    No longer called
    org.hibernate.sql.model.ast.MutationGroup.forEachTableMutation(BiConsumer<Integer, M>)
    org.hibernate.sql.model.ast.MutationGroup.getTableMutation(String)
    org.hibernate.sql.model.MutationOperationGroup.forEachOperation(BiConsumer<Integer, O>)
    Will be removed. Use the other methods to visit each operation.
    org.hibernate.sql.model.MutationOperationGroup.hasMatching(BiFunction<Integer, O, Boolean>)
    Will be removed. Use the other methods to visit each operation.
    org.hibernate.sql.results.internal.InitializersList.asList()
    org.hibernate.stat.Statistics.getStartTime()
    use Statistics.getStart()
    org.hibernate.StatelessSessionBuilder.tenantIdentifier(String)
    Use StatelessSessionBuilder.tenantIdentifier(Object) instead
    org.hibernate.tool.schema.internal.StandardTableExporter.applyComments(Table, QualifiedTableName, List<String>)
    Use StandardTableExporter.applyComments(Table, String, List) instead.
    org.hibernate.tool.schema.spi.ExecutionOptions.getSchemaFilter()
    No longer used, see SchemaToolingSettings.HBM2DDL_FILTER_PROVIDER
    org.hibernate.tuple.IdentifierAttribute.getIdentifierGenerator()
    org.hibernate.tuple.NonIdentifierAttribute.isDirtyCheckable(boolean)
    Use NonIdentifierAttribute.isDirtyCheckable() instead
    org.hibernate.type.CollectionType.getElementsIterator(Object, SharedSessionContractImplementor)
    use CollectionType.getElementsIterator(Object)
    org.hibernate.type.ComponentType.getPropertyValueGenerationStrategies()
    org.hibernate.type.descriptor.DateTimeUtils.appendAsTime(SqlAppender, Calendar)
    Use DateTimeUtils.appendAsLocalTime(SqlAppender, Calendar) instead
    org.hibernate.type.descriptor.DateTimeUtils.appendAsTime(SqlAppender, Date)
    Use DateTimeUtils.appendAsLocalTime(SqlAppender, Date) instead
    org.hibernate.type.descriptor.java.JavaType.createJavaType(ParameterizedType)
    Use JavaType.createJavaType(ParameterizedType, TypeConfiguration) instead
    org.hibernate.type.descriptor.jdbc.JdbcType.addAuxiliaryDatabaseObjects(JavaType<?>, Size, Database, TypeConfiguration)
    Use JdbcType.addAuxiliaryDatabaseObjects(JavaType, Size, Database, JdbcTypeIndicators) instead
    org.hibernate.type.descriptor.sql.DdlType.getCastTypeName(SqlExpressible, Long, Integer, Integer)
    Use DdlType.getCastTypeName(Size, SqlExpressible, DdlTypeRegistry) instead
    org.hibernate.type.descriptor.sql.DdlType.getCastTypeName(JdbcType, JavaType<?>)
    Use DdlType.getCastTypeName(Size, SqlExpressible, DdlTypeRegistry) instead
    org.hibernate.type.descriptor.sql.DdlType.getCastTypeName(JdbcType, JavaType<?>, Long, Integer, Integer)
    Use DdlType.getCastTypeName(Size, SqlExpressible, DdlTypeRegistry) instead
    org.hibernate.type.descriptor.sql.DdlType.getRawTypeName()
    not appropriate for named enum or array types
    org.hibernate.type.descriptor.sql.DdlType.getRawTypeNames()
    not appropriate for named enum or array types
    org.hibernate.type.descriptor.sql.DdlType.getTypeName(Long, Integer, Integer)
    not appropriate for named enum or array types, use DdlType.getTypeName(Size, Type, DdlTypeRegistry) instead
    org.hibernate.type.descriptor.sql.DdlType.getTypeName(Size)
    not appropriate for named enum or array types, use DdlType.getTypeName(Size, Type, DdlTypeRegistry) instead
    org.hibernate.type.descriptor.sql.internal.CapacityDependentDdlType.getRawTypeNames()
    org.hibernate.type.descriptor.sql.spi.DdlTypeRegistry.getTypeName(int, Long, Integer, Integer)
    not appropriate for named enum or array types, use DdlTypeRegistry.getTypeName(int, Size, Type) instead
    org.hibernate.type.descriptor.sql.spi.DdlTypeRegistry.getTypeName(int, Size)
    not appropriate for named enum or array types, use DdlTypeRegistry.getTypeName(int, Size, Type) instead
    org.hibernate.type.SerializableToBlobType.setJavaTypeDescriptor(JavaType<T>)
    org.hibernate.type.spi.TypeConfiguration.getMetadataBuildingContext()
    This operation is not very typesafe, and we're migrating away from its use
    org.hibernate.type.spi.TypeConfiguration.getServiceRegistry()
    This simply isn't a very sensible place to hang the ServiceRegistry
    org.hibernate.type.spi.TypeConfiguration.getSessionFactory()
    This operation is not very typesafe, and we're migrating away from its use
  • Deprecated Constructors
    Constructor
    Description
    org.hibernate.dialect.Dialect()
    provide a DatabaseVersion
    org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentImpl(ServiceRegistryImplementor, Dialect, DatabaseMetaData)
    currently used by Hibernate Reactive This version of the constructor should handle the case in which we do actually have the option to access the DatabaseMetaData, but since Hibernate Reactive is currently not making use of it we take a shortcut.
    org.hibernate.engine.jdbc.Size(Integer, Integer, Integer, Size.LobMultiplier)
    in favor of Size(Integer, Integer, Long)
    org.hibernate.engine.jdbc.Size(Integer, Integer, Long, Size.LobMultiplier)
    in favor of Size(Integer, Integer, Long)
    org.hibernate.exception.internal.StandardSQLExceptionConverter()
    use StandardSQLExceptionConverter(SQLExceptionConversionDelegate...)
    org.hibernate.mapping.Table()
    org.hibernate.query.SemanticException(String)
    this constructor does not carry information about the query which caused the failure
    org.hibernate.query.SemanticException(String, Exception)
    this constructor does not carry information about the query which caused the failure
    org.hibernate.query.sqm.InterpretationException(String)
    this constructor does not carry information about the query which caused the failure
    org.hibernate.query.sqm.tree.select.SqmSortSpecification(SqmExpression, SortDirection, NullPrecedence)
    Use SqmSortSpecification(SqmExpression, SortDirection, Nulls) instead
    org.hibernate.query.sqm.tree.update.SqmUpdateStatement(SqmRoot<T>, NodeBuilder)
    was previously used for HQL. Use SqmUpdateStatement(NodeBuilder) instead
    org.hibernate.query.sqm.tree.update.SqmUpdateStatement(SqmRoot<T>, SqmQuerySource, NodeBuilder)
    was previously used for Criteria. Use SqmUpdateStatement(Class, SqmCriteriaNodeBuilder) instead.
    org.hibernate.QueryException(Exception)
    this constructor does not carry information about the query which caused the failure
    org.hibernate.QueryException(String)
    this constructor does not carry information about the query which caused the failure
    org.hibernate.QueryException(String, Exception)
    this constructor does not carry information about the query which caused the failure
    org.hibernate.sql.ast.tree.cte.SearchClauseSpecification(CteColumn, SortDirection, NullPrecedence)
    Use SearchClauseSpecification(CteColumn,SortDirection,Nulls) instead
    org.hibernate.sql.ast.tree.select.SortSpecification(Expression, SortDirection, NullPrecedence)
    Use SortSpecification(Expression, SortDirection, Nulls) instead
  • Deprecated Enum Constants
    Enum Constant
    Description
    org.hibernate.annotations.CascadeType.DELETE
    since Session.delete(Object) is deprecated
    org.hibernate.annotations.CascadeType.REPLICATE
    since Session.replicate(Object, ReplicationMode) is deprecated
    org.hibernate.annotations.CascadeType.SAVE_UPDATE
    since Session.saveOrUpdate(Object) is deprecated
    org.hibernate.annotations.LazyCollectionOption.EXTRA
    use operations of Hibernate
    org.hibernate.annotations.LazyCollectionOption.FALSE
    use FetchType.EAGER
    org.hibernate.annotations.LazyCollectionOption.TRUE
    use FetchType.LAZY
    org.hibernate.annotations.LazyToOneOption.FALSE
    use FetchType.EAGER
    org.hibernate.annotations.LazyToOneOption.NO_PROXY
    this setting no longer has any useful effect
    org.hibernate.annotations.LazyToOneOption.PROXY
    use FetchType.LAZY
  • Deprecated Annotation Interface Elements
    Annotation Interface Element
    Description
    org.hibernate.annotations.AttributeAccessor.value()
    use AttributeAccessor.strategy()
    org.hibernate.annotations.Cache.include()
    Use Cache.includeLazy() for the sake of typesafety.
    org.hibernate.annotations.CurrentTimestamp.timing()
    This was introduced in error
    org.hibernate.annotations.DynamicInsert.value()
    When false, this annotation has no effect.
    org.hibernate.annotations.DynamicUpdate.value()
    When false, this annotation has no effect.
    org.hibernate.annotations.ForeignKey.inverseName()
    this member is currently ignored and has no effect
    org.hibernate.annotations.Generated.value()
    use Generated.event()
    org.hibernate.annotations.GenericGenerator.strategy()
    use GenericGenerator.type() for typesafety
    org.hibernate.annotations.NamedNativeQuery.cacheMode()
    use NamedNativeQuery.cacheStoreMode() and NamedNativeQuery.cacheRetrieveMode() since CacheModeType is deprecated
    org.hibernate.annotations.NamedNativeQuery.callable()
    Calling database procedures and functions through NativeQuery is no longer supported; use NamedStoredProcedureQuery instead.
    org.hibernate.annotations.NamedQuery.cacheMode()
    use NamedQuery.cacheStoreMode() and NamedQuery.cacheRetrieveMode() since CacheModeType is deprecated
    org.hibernate.annotations.SelectBeforeUpdate.value()
    When false, this annotation has no effect.
    org.hibernate.annotations.SQLDelete.check()
    use SQLDelete.verify() with an Expectation class
    org.hibernate.annotations.SQLDeleteAll.check()
    use SQLDeleteAll.verify() with an Expectation class
    org.hibernate.annotations.SQLInsert.check()
    use SQLInsert.verify() with an Expectation class
    org.hibernate.annotations.SQLUpdate.check()
    use SQLUpdate.verify() with an Expectation class
    org.hibernate.annotations.Table.checkConstraint()
    use Check.
    org.hibernate.annotations.Table.comment()
    use Comment
    org.hibernate.annotations.Table.fetch()
    This setting has no effect in Hibernate 6
    org.hibernate.annotations.Table.foreignKey()
    use SecondaryTable.foreignKey()
    org.hibernate.annotations.Table.indexes()
    use Table.indexes() or SecondaryTable.indexes()
    org.hibernate.annotations.Table.inverse()
    use SecondaryRow.owned()
    org.hibernate.annotations.Table.optional()
    use SecondaryRow.optional()
    org.hibernate.annotations.Table.sqlDelete()
    use SQLInsert.table() to specify the secondary table
    org.hibernate.annotations.Table.sqlInsert()
    use SQLInsert.table() to specify the secondary table
    org.hibernate.annotations.Table.sqlUpdate()
    use SQLInsert.table() to specify the secondary table

Copyright © 2001-2024 Red Hat, Inc. All Rights Reserved.