move since from @deprecated to @Deprecated
This commit is contained in:
parent
a35669f11b
commit
973c052c8c
|
@ -11,11 +11,11 @@ import org.hibernate.metamodel.model.domain.JpaMetamodel;
|
||||||
/**
|
/**
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) Prefer {@link JpaMetamodel}
|
* @deprecated Prefer {@link JpaMetamodel}
|
||||||
*
|
*
|
||||||
* @see JpaMetamodel
|
* @see JpaMetamodel
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public interface Metamodel extends JpaMetamodel {
|
public interface Metamodel extends JpaMetamodel {
|
||||||
/**
|
/**
|
||||||
* Access to the SessionFactory that this Metamodel instance is bound to.
|
* Access to the SessionFactory that this Metamodel instance is bound to.
|
||||||
|
|
|
@ -158,9 +158,9 @@ public interface SessionBuilder<T extends SessionBuilder> {
|
||||||
*
|
*
|
||||||
* @return {@code this}, for method chaining
|
* @return {@code this}, for method chaining
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.2) use {@link #connectionHandlingMode} instead
|
* @deprecated use {@link #connectionHandlingMode} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
T connectionReleaseMode(ConnectionReleaseMode connectionReleaseMode);
|
T connectionReleaseMode(ConnectionReleaseMode connectionReleaseMode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -171,9 +171,9 @@ public interface SessionBuilder<T extends SessionBuilder> {
|
||||||
*
|
*
|
||||||
* @return {@code this}, for method chaining
|
* @return {@code this}, for method chaining
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.2) use {@link #flushMode(FlushMode)} instead.
|
* @deprecated use {@link #flushMode(FlushMode)} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
default T flushBeforeCompletion(boolean flushBeforeCompletion) {
|
default T flushBeforeCompletion(boolean flushBeforeCompletion) {
|
||||||
if ( flushBeforeCompletion ) {
|
if ( flushBeforeCompletion ) {
|
||||||
|
|
|
@ -46,9 +46,9 @@ public interface SharedSessionBuilder<T extends SharedSessionBuilder> extends Se
|
||||||
*
|
*
|
||||||
* @return {@code this}, for method chaining
|
* @return {@code this}, for method chaining
|
||||||
*
|
*
|
||||||
* @deprecated (snce 6.0) use {@link #connectionHandlingMode} instead.
|
* @deprecated use {@link #connectionHandlingMode} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
T connectionReleaseMode();
|
T connectionReleaseMode();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -84,9 +84,9 @@ public interface SharedSessionBuilder<T extends SharedSessionBuilder> extends Se
|
||||||
*
|
*
|
||||||
* @return {@code this}, for method chaining
|
* @return {@code this}, for method chaining
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.2) use {@link #flushMode()} instead.
|
* @deprecated use {@link #flushMode()} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
default T flushBeforeCompletion() {
|
default T flushBeforeCompletion() {
|
||||||
flushMode();
|
flushMode();
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.hibernate.tuple.VmValueGeneration;
|
||||||
@ValueGenerationType( generatedBy = VmValueGeneration.class )
|
@ValueGenerationType( generatedBy = VmValueGeneration.class )
|
||||||
@Retention( RetentionPolicy.RUNTIME )
|
@Retention( RetentionPolicy.RUNTIME )
|
||||||
@Target( value = { ElementType.FIELD, ElementType.METHOD } )
|
@Target( value = { ElementType.FIELD, ElementType.METHOD } )
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public @interface GeneratorType {
|
public @interface GeneratorType {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,10 +20,10 @@ import org.hibernate.query.Query;
|
||||||
*
|
*
|
||||||
* @see AvailableHints
|
* @see AvailableHints
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) Use {@link AvailableHints} instead
|
* @deprecated Use {@link AvailableHints} instead
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public final class QueryHints {
|
public final class QueryHints {
|
||||||
/**
|
/**
|
||||||
* Disallow instantiation.
|
* Disallow instantiation.
|
||||||
|
|
|
@ -273,9 +273,9 @@ public interface SessionFactoryBuilder {
|
||||||
*
|
*
|
||||||
* @see org.hibernate.cfg.AvailableSettings#BATCH_FETCH_STYLE
|
* @see org.hibernate.cfg.AvailableSettings#BATCH_FETCH_STYLE
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) : an appropriate style is selected
|
* @deprecated : an appropriate style is selected
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
SessionFactoryBuilder applyBatchFetchStyle(BatchFetchStyle style);
|
SessionFactoryBuilder applyBatchFetchStyle(BatchFetchStyle style);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1307,9 +1307,9 @@ public class SessionFactoryOptionsBuilder implements SessionFactoryOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 6.0) : No longer used internally
|
* @deprecated : No longer used internally
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public void applyBatchFetchStyle(BatchFetchStyle style) {
|
public void applyBatchFetchStyle(BatchFetchStyle style) {
|
||||||
this.batchFetchStyle = style;
|
this.batchFetchStyle = style;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,10 +14,10 @@ import jakarta.persistence.TableGenerator;
|
||||||
/**
|
/**
|
||||||
* Strategy for interpreting identifier generator related information.
|
* Strategy for interpreting identifier generator related information.
|
||||||
*
|
*
|
||||||
* @deprecated (as of 6.0) see {@link org.hibernate.id.factory.spi.GenerationTypeStrategy}
|
* @deprecated see {@link org.hibernate.id.factory.spi.GenerationTypeStrategy}
|
||||||
* and {@link org.hibernate.id.factory.spi.GenerationTypeStrategyRegistration}
|
* and {@link org.hibernate.id.factory.spi.GenerationTypeStrategyRegistration}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public interface IdGeneratorStrategyInterpreter {
|
public interface IdGeneratorStrategyInterpreter {
|
||||||
interface GeneratorNameDeterminationContext {
|
interface GeneratorNameDeterminationContext {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -42,13 +42,13 @@ public interface TypeContributions {
|
||||||
<T> void contributeType(UserType<T> type);
|
<T> void contributeType(UserType<T> type);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (6.0) See user-guide section `2.2.46. TypeContributor` for details - `basic_types.adoc`
|
* @deprecated See user-guide section `2.2.46. TypeContributor` for details - `basic_types.adoc`
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
void contributeType(BasicType type);
|
void contributeType(BasicType type);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 5.3) Use {@link #contributeType(BasicType)} instead. Basic
|
* @deprecated Use {@link #contributeType(BasicType)} instead. Basic
|
||||||
* types will be defined and handled much differently in 6.0 based on a combination
|
* types will be defined and handled much differently in 6.0 based on a combination
|
||||||
* of {@link JavaType}, {@link JdbcType} and a concept of a "value
|
* of {@link JavaType}, {@link JdbcType} and a concept of a "value
|
||||||
* converter" (a JPA AttributeConverter, an enum value resolver, etc). To get as
|
* converter" (a JPA AttributeConverter, an enum value resolver, etc). To get as
|
||||||
|
@ -57,11 +57,11 @@ public interface TypeContributions {
|
||||||
* and use {@link StandardBasicTypeTemplate} to combine those with
|
* and use {@link StandardBasicTypeTemplate} to combine those with
|
||||||
* registration keys and call {@link #contributeType(BasicType)} instead
|
* registration keys and call {@link #contributeType(BasicType)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.3")
|
||||||
void contributeType(BasicType type, String... keys);
|
void contributeType(BasicType type, String... keys);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 5.3) Use {@link #contributeType(BasicType)} instead.
|
* @deprecated Use {@link #contributeType(BasicType)} instead.
|
||||||
* {@link UserType}, as currently defined, will be done very differently in 6.0.
|
* {@link UserType}, as currently defined, will be done very differently in 6.0.
|
||||||
* In most cases a {@link UserType} can be simply replaced with proper
|
* In most cases a {@link UserType} can be simply replaced with proper
|
||||||
* {@link JavaType}. To get as close as possible to 6.0 in 5.3 use
|
* {@link JavaType}. To get as close as possible to 6.0 in 5.3 use
|
||||||
|
@ -70,6 +70,6 @@ public interface TypeContributions {
|
||||||
* {@link StandardBasicTypeTemplate} to combine those with registration keys
|
* {@link StandardBasicTypeTemplate} to combine those with registration keys
|
||||||
* and call {@link #contributeType(BasicType)} instead
|
* and call {@link #contributeType(BasicType)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.3")
|
||||||
void contributeType(UserType type, String... keys);
|
void contributeType(UserType type, String... keys);
|
||||||
}
|
}
|
||||||
|
|
|
@ -155,9 +155,9 @@ public interface SessionFactoryOptions extends QueryEngineOptions {
|
||||||
TempTableDdlTransactionHandling getTempTableDdlTransactionHandling();
|
TempTableDdlTransactionHandling getTempTableDdlTransactionHandling();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 6.0) : No longer used internally
|
* @deprecated : No longer used internally
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
BatchFetchStyle getBatchFetchStyle();
|
BatchFetchStyle getBatchFetchStyle();
|
||||||
|
|
||||||
boolean isDelayBatchFetchLoaderCreationsEnabled();
|
boolean isDelayBatchFetchLoaderCreationsEnabled();
|
||||||
|
|
|
@ -133,9 +133,9 @@ public interface CacheImplementor extends Service, Cache, Serializable {
|
||||||
*
|
*
|
||||||
* @return All cache region names
|
* @return All cache region names
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.3) Use {@link CacheImplementor#getCacheRegionNames()} instead
|
* @deprecated Use {@link CacheImplementor#getCacheRegionNames()} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.3")
|
||||||
String[] getSecondLevelCacheRegionNames();
|
String[] getSecondLevelCacheRegionNames();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -185,10 +185,10 @@ public interface CacheImplementor extends Service, Cache, Serializable {
|
||||||
// - themselves deprecated
|
// - themselves deprecated
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 5.3) No replacement - added just to continue some backwards compatibility
|
* @deprecated No replacement - added just to continue some backwards compatibility
|
||||||
* in supporting the newly deprecated methods expecting a qualified (prefix +) region name
|
* in supporting the newly deprecated methods expecting a qualified (prefix +) region name
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.3")
|
||||||
default String unqualifyRegionName(String name) {
|
default String unqualifyRegionName(String name) {
|
||||||
if ( getSessionFactory().getSessionFactoryOptions().getCacheRegionPrefix() == null ) {
|
if ( getSessionFactory().getSessionFactoryOptions().getCacheRegionPrefix() == null ) {
|
||||||
return name;
|
return name;
|
||||||
|
|
|
@ -26,11 +26,11 @@ import org.hibernate.internal.util.GenericsHelper;
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.3) forces the converter instance to be built too early,
|
* @deprecated forces the converter instance to be built too early,
|
||||||
* which precludes the ability to resolve them from CDI, etc. See
|
* which precludes the ability to resolve them from CDI, etc. See
|
||||||
* {@link ConverterDescriptor} instead
|
* {@link ConverterDescriptor} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.3")
|
||||||
public class AttributeConverterDefinition implements AttributeConverterInfo {
|
public class AttributeConverterDefinition implements AttributeConverterInfo {
|
||||||
private final AttributeConverter attributeConverter;
|
private final AttributeConverter attributeConverter;
|
||||||
private final boolean autoApply;
|
private final boolean autoApply;
|
||||||
|
|
|
@ -1877,9 +1877,9 @@ public interface AvailableSettings {
|
||||||
* either the name of a {code BatchFetchStyle} instance, or an instance
|
* either the name of a {code BatchFetchStyle} instance, or an instance
|
||||||
* of {@code BatchFetchStyle}.
|
* of {@code BatchFetchStyle}.
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) : An appropriate batch-fetch style is selected automatically
|
* @deprecated An appropriate batch-fetch style is selected automatically
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
@SuppressWarnings("DeprecatedIsStillUsed")
|
@SuppressWarnings("DeprecatedIsStillUsed")
|
||||||
String BATCH_FETCH_STYLE = "hibernate.batch_fetch_style";
|
String BATCH_FETCH_STYLE = "hibernate.batch_fetch_style";
|
||||||
|
|
||||||
|
@ -2674,10 +2674,9 @@ public interface AvailableSettings {
|
||||||
* Specifies a class which implements {@link org.hibernate.jpa.spi.IdentifierGeneratorStrategyProvider},
|
* Specifies a class which implements {@link org.hibernate.jpa.spi.IdentifierGeneratorStrategyProvider},
|
||||||
* and has a constructor with no parameters.
|
* and has a constructor with no parameters.
|
||||||
*
|
*
|
||||||
* @deprecated (as of 6.0) use {@link org.hibernate.id.factory.spi.GenerationTypeStrategyRegistration}
|
* @deprecated use {@link org.hibernate.id.factory.spi.GenerationTypeStrategyRegistration} instead
|
||||||
* instead
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
@SuppressWarnings("DeprecatedIsStillUsed")
|
@SuppressWarnings("DeprecatedIsStillUsed")
|
||||||
String IDENTIFIER_GENERATOR_STRATEGY_PROVIDER = "hibernate.identifier_generator_strategy_provider";
|
String IDENTIFIER_GENERATOR_STRATEGY_PROVIDER = "hibernate.identifier_generator_strategy_provider";
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,6 @@ public class BaselineSessionEventsListenerBuilder {
|
||||||
return logSessionMetrics;
|
return logSessionMetrics;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
|
||||||
/**
|
/**
|
||||||
* @deprecated this method will be removed as this builder should become immutable
|
* @deprecated this method will be removed as this builder should become immutable
|
||||||
*/
|
*/
|
||||||
|
@ -50,7 +49,6 @@ public class BaselineSessionEventsListenerBuilder {
|
||||||
return autoListener;
|
return autoListener;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
|
||||||
/**
|
/**
|
||||||
* @deprecated this method will be removed as this builder should become immutable
|
* @deprecated this method will be removed as this builder should become immutable
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -159,9 +159,9 @@ public final class Settings {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 6.0) : No longer used internally
|
* @deprecated No longer used internally
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public BatchFetchStyle getBatchFetchStyle() {
|
public BatchFetchStyle getBatchFetchStyle() {
|
||||||
return sessionFactoryOptions.getBatchFetchStyle();
|
return sessionFactoryOptions.getBatchFetchStyle();
|
||||||
}
|
}
|
||||||
|
|
|
@ -774,7 +774,6 @@ public class TableBinder {
|
||||||
* @deprecated Use {@link #buildUniqueConstraintHolders} instead
|
* @deprecated Use {@link #buildUniqueConstraintHolders} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@SuppressWarnings({ "JavaDoc" })
|
|
||||||
public static List<String[]> buildUniqueConstraints(UniqueConstraint[] constraintsArray) {
|
public static List<String[]> buildUniqueConstraints(UniqueConstraint[] constraintsArray) {
|
||||||
List<String[]> result = new ArrayList<>();
|
List<String[]> result = new ArrayList<>();
|
||||||
if ( constraintsArray.length != 0 ) {
|
if ( constraintsArray.length != 0 ) {
|
||||||
|
|
|
@ -251,7 +251,7 @@ public abstract class Dialect implements ConversionContext {
|
||||||
/**
|
/**
|
||||||
* @deprecated provide a {@link DatabaseVersion}
|
* @deprecated provide a {@link DatabaseVersion}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
protected Dialect() {
|
protected Dialect() {
|
||||||
this( (DatabaseVersion) null );
|
this( (DatabaseVersion) null );
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,9 +160,9 @@ public interface JdbcCoordinator extends Serializable, TransactionCoordinatorOwn
|
||||||
boolean isReadyForSerialization();
|
boolean isReadyForSerialization();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 5.2) access via {@link #getLogicalConnection} instead
|
* @deprecated access via {@link #getLogicalConnection} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
default ResourceRegistry getResourceRegistry() {
|
default ResourceRegistry getResourceRegistry() {
|
||||||
return getLogicalConnection().getResourceRegistry();
|
return getLogicalConnection().getResourceRegistry();
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,9 +17,9 @@ import org.hibernate.graph.spi.RootGraphImplementor;
|
||||||
*
|
*
|
||||||
* @author Brett Meyer
|
* @author Brett Meyer
|
||||||
*
|
*
|
||||||
* @deprecated (6.0) - use {@link AppliedGraph} instead
|
* @deprecated use {@link AppliedGraph} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public class EntityGraphQueryHint implements AppliedGraph {
|
public class EntityGraphQueryHint implements AppliedGraph {
|
||||||
private final AppliedGraph delegate;
|
private final AppliedGraph delegate;
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,11 @@ import org.hibernate.type.Type;
|
||||||
* @see org.hibernate.cfg.Configuration
|
* @see org.hibernate.cfg.Configuration
|
||||||
* @author Gavin King
|
* @author Gavin King
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) Use {@link org.hibernate.type.spi.TypeConfiguration},
|
* @deprecated Use {@link org.hibernate.type.spi.TypeConfiguration},
|
||||||
* {@link org.hibernate.boot.Metadata} or {@link org.hibernate.metamodel.RuntimeMetamodels}
|
* {@link org.hibernate.boot.Metadata} or {@link org.hibernate.metamodel.RuntimeMetamodels}
|
||||||
* to access such information
|
* to access such information
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public interface Mapping {
|
public interface Mapping {
|
||||||
Type getIdentifierType(String className) throws MappingException;
|
Type getIdentifierType(String className) throws MappingException;
|
||||||
String getIdentifierPropertyName(String className) throws MappingException;
|
String getIdentifierPropertyName(String className) throws MappingException;
|
||||||
|
|
|
@ -24,9 +24,9 @@ public interface SessionBuilderImplementor<T extends SessionBuilder> extends Ses
|
||||||
*
|
*
|
||||||
* @return {@code this}, for method chaining
|
* @return {@code this}, for method chaining
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.2) since consolidating hibernate-entitymanager into hibernate-core
|
* @deprecated since consolidating hibernate-entitymanager into hibernate-core
|
||||||
* I believe this is no longer needed.
|
* I believe this is no longer needed.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
T owner(SessionOwner sessionOwner);
|
T owner(SessionOwner sessionOwner);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,10 @@ import org.hibernate.resource.transaction.backend.jta.internal.synchronization.M
|
||||||
*
|
*
|
||||||
* @see SessionBuilderImplementor#owner
|
* @see SessionBuilderImplementor#owner
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.2) since consolidating hibernate-entitymanager into hibernate-core
|
* @deprecated since consolidating hibernate-entitymanager into hibernate-core
|
||||||
* I believe this is no longer needed.
|
* I believe this is no longer needed.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
public interface SessionOwner {
|
public interface SessionOwner {
|
||||||
/**
|
/**
|
||||||
* Should session automatically be closed after transaction completion?
|
* Should session automatically be closed after transaction completion?
|
||||||
|
|
|
@ -193,9 +193,9 @@ public interface SharedSessionContractImplementor
|
||||||
long getTransactionStartTimestamp();
|
long getTransactionStartTimestamp();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 5.3) Use {@link #getTransactionStartTimestamp()} instead.
|
* @deprecated Use {@link #getTransactionStartTimestamp()} instead.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.3")
|
||||||
default long getTimestamp() {
|
default long getTimestamp() {
|
||||||
return getTransactionStartTimestamp();
|
return getTransactionStartTimestamp();
|
||||||
}
|
}
|
||||||
|
@ -345,9 +345,9 @@ public interface SharedSessionContractImplementor
|
||||||
*
|
*
|
||||||
* @param flushMode the new flush mode
|
* @param flushMode the new flush mode
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.2) use {@link #setHibernateFlushMode(FlushMode)} instead
|
* @deprecated use {@link #setHibernateFlushMode(FlushMode)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
void setFlushMode(FlushMode flushMode);
|
void setFlushMode(FlushMode flushMode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -21,12 +21,12 @@ public interface TransactionImplementor extends Transaction {
|
||||||
* <li>The session that owns the transaction is closed</li>
|
* <li>The session that owns the transaction is closed</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.2) as part of effort to consolidate support for JPA and Hibernate SessionFactory, Session, etc
|
* @deprecated as part of effort to consolidate support for JPA and Hibernate SessionFactory, Session, etc
|
||||||
* natively, support for local Transaction delegates to remain "valid" after they are committed or rolled-back (and to a
|
* natively, support for local Transaction delegates to remain "valid" after they are committed or rolled-back (and to a
|
||||||
* degree after the owning Session is closed) to more closely comply with the JPA spec natively in terms
|
* degree after the owning Session is closed) to more closely comply with the JPA spec natively in terms
|
||||||
* of allowing that extended access after Session is closed. Hibernate impls have all been changed to no-op here.
|
* of allowing that extended access after Session is closed. Hibernate impls have all been changed to no-op here.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
default void invalidate() {
|
default void invalidate() {
|
||||||
// no-op : see @deprecated note
|
// no-op : see @deprecated note
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,9 +66,9 @@ public enum GraphSemantic {
|
||||||
* @see org.hibernate.jpa.LegacySpecHints#HINT_JAVAEE_FETCH_GRAPH
|
* @see org.hibernate.jpa.LegacySpecHints#HINT_JAVAEE_FETCH_GRAPH
|
||||||
* @see org.hibernate.jpa.LegacySpecHints#HINT_JAVAEE_LOAD_GRAPH
|
* @see org.hibernate.jpa.LegacySpecHints#HINT_JAVAEE_LOAD_GRAPH
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) Use {@link #getJakartaHintName} instead
|
* @deprecated Use {@link #getJakartaHintName} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public String getJpaHintName() {
|
public String getJpaHintName() {
|
||||||
return javaeeHintName;
|
return javaeeHintName;
|
||||||
}
|
}
|
||||||
|
@ -99,9 +99,9 @@ public enum GraphSemantic {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 6.0) Use {@link #fromHintName} instead
|
* @deprecated Use {@link #fromHintName} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public static GraphSemantic fromJpaHintName(String hintName) {
|
public static GraphSemantic fromJpaHintName(String hintName) {
|
||||||
return fromHintName( hintName );
|
return fromHintName( hintName );
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,9 +21,9 @@ import org.hibernate.internal.CoreMessageLogger;
|
||||||
*
|
*
|
||||||
* @author Joseph Fifield
|
* @author Joseph Fifield
|
||||||
*
|
*
|
||||||
* @deprecated (as of 6.0)
|
* @deprecated use {@link org.hibernate.id.uuid.UuidGenerator}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public class GUIDGenerator implements StandardGenerator {
|
public class GUIDGenerator implements StandardGenerator {
|
||||||
private static final CoreMessageLogger LOG = CoreLogging.messageLogger( GUIDGenerator.class );
|
private static final CoreMessageLogger LOG = CoreLogging.messageLogger( GUIDGenerator.class );
|
||||||
|
|
||||||
|
|
|
@ -37,10 +37,10 @@ import org.hibernate.type.descriptor.java.UUIDJavaType;
|
||||||
* <li>{@link org.hibernate.id.uuid.CustomVersionOneStrategy}</li>
|
* <li>{@link org.hibernate.id.uuid.CustomVersionOneStrategy}</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) - use {@link org.hibernate.id.uuid.UuidGenerator} and
|
* @deprecated use {@link org.hibernate.id.uuid.UuidGenerator} and
|
||||||
* {@link org.hibernate.annotations.UuidGenerator} instead
|
* {@link org.hibernate.annotations.UuidGenerator} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public class UUIDGenerator implements StandardGenerator {
|
public class UUIDGenerator implements StandardGenerator {
|
||||||
private static final CoreMessageLogger LOG = CoreLogging.messageLogger( UUIDGenerator.class );
|
private static final CoreMessageLogger LOG = CoreLogging.messageLogger( UUIDGenerator.class );
|
||||||
|
|
||||||
|
|
|
@ -49,10 +49,10 @@ public interface IdentifierGeneratorFactory {
|
||||||
*
|
*
|
||||||
* @return The appropriate generator instance.
|
* @return The appropriate generator instance.
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) use {@link #createIdentifierGenerator(GenerationType, String, String, JavaType, Properties, GeneratorDefinitionResolver)}
|
* @deprecated use {@link #createIdentifierGenerator(GenerationType, String, String, JavaType, Properties, GeneratorDefinitionResolver)}
|
||||||
* instead
|
* instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
IdentifierGenerator createIdentifierGenerator(String strategy, Type type, Properties config);
|
IdentifierGenerator createIdentifierGenerator(String strategy, Type type, Properties config);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -61,9 +61,9 @@ public interface IdentifierGeneratorFactory {
|
||||||
* @param strategy The strategy
|
* @param strategy The strategy
|
||||||
* @return The generator class.
|
* @return The generator class.
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) with no replacement. See
|
* @deprecated with no replacement. See
|
||||||
* {@link #createIdentifierGenerator(GenerationType, String, String, JavaType, Properties, GeneratorDefinitionResolver)}
|
* {@link #createIdentifierGenerator(GenerationType, String, String, JavaType, Properties, GeneratorDefinitionResolver)}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
Class getIdentifierGeneratorClass(String strategy);
|
Class getIdentifierGeneratorClass(String strategy);
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,9 +29,9 @@ public interface Integrator {
|
||||||
* @param metadata The "compiled" representation of the mapping information
|
* @param metadata The "compiled" representation of the mapping information
|
||||||
* @param sessionFactory The session factory being created
|
* @param sessionFactory The session factory being created
|
||||||
* @param serviceRegistry The session factory's service registry
|
* @param serviceRegistry The session factory's service registry
|
||||||
* @deprecated (since 6.0) - use
|
* @deprecated - use
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
default void integrate(
|
default void integrate(
|
||||||
Metadata metadata,
|
Metadata metadata,
|
||||||
SessionFactoryImplementor sessionFactory,
|
SessionFactoryImplementor sessionFactory,
|
||||||
|
|
|
@ -428,9 +428,9 @@ public abstract class AbstractSharedSessionContract implements SharedSessionCont
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 5.2) use {@link #checkOpen()} instead
|
* @deprecated use {@link #checkOpen()} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
protected void errorIfClosed() {
|
protected void errorIfClosed() {
|
||||||
checkOpen();
|
checkOpen();
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,10 +61,10 @@ public interface SessionCreationOptions {
|
||||||
*
|
*
|
||||||
* @return Always returns null.
|
* @return Always returns null.
|
||||||
*
|
*
|
||||||
* @deprecated (since 5,2) SessionOwner is no longer pertinent due to the
|
* @deprecated SessionOwner is no longer pertinent due to the
|
||||||
* hibernate-entitymanager -> hibernate-core consolidation
|
* hibernate-entitymanager -> hibernate-core consolidation
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
SessionOwner getSessionOwner();
|
SessionOwner getSessionOwner();
|
||||||
|
|
||||||
ExceptionMapper getExceptionMapper();
|
ExceptionMapper getExceptionMapper();
|
||||||
|
|
|
@ -16,11 +16,11 @@ package org.hibernate.jpa;
|
||||||
*
|
*
|
||||||
* @see SpecHints
|
* @see SpecHints
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) Use the {@link SpecHints} form instead
|
* @deprecated Use the {@link SpecHints} form instead
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public interface LegacySpecHints {
|
public interface LegacySpecHints {
|
||||||
/**
|
/**
|
||||||
* @see SpecHints#HINT_SPEC_FETCH_GRAPH
|
* @see SpecHints#HINT_SPEC_FETCH_GRAPH
|
||||||
|
|
|
@ -15,10 +15,10 @@ import org.hibernate.jpa.internal.HintsCollector;
|
||||||
*
|
*
|
||||||
* @see AvailableHints
|
* @see AvailableHints
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) Use {@link AvailableHints} instead
|
* @deprecated Use {@link AvailableHints} instead
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public final class QueryHints {
|
public final class QueryHints {
|
||||||
/**
|
/**
|
||||||
* @see SpecHints#HINT_SPEC_QUERY_TIMEOUT
|
* @see SpecHints#HINT_SPEC_QUERY_TIMEOUT
|
||||||
|
|
|
@ -14,10 +14,9 @@ import java.util.Map;
|
||||||
*
|
*
|
||||||
* @author <a href="mailto:emmanuel@hibernate.org">Emmanuel Bernard</a>
|
* @author <a href="mailto:emmanuel@hibernate.org">Emmanuel Bernard</a>
|
||||||
*
|
*
|
||||||
* @deprecated (as of 6.0) supply a {@link org.hibernate.id.factory.spi.GenerationTypeStrategyRegistration}
|
* @deprecated supply a {@link org.hibernate.id.factory.spi.GenerationTypeStrategyRegistration} instead
|
||||||
* instead
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public interface IdentifierGeneratorStrategyProvider {
|
public interface IdentifierGeneratorStrategyProvider {
|
||||||
/**
|
/**
|
||||||
* set of strategy / generator class pairs to register as accepted strategies
|
* set of strategy / generator class pairs to register as accepted strategies
|
||||||
|
|
|
@ -13,10 +13,10 @@ package org.hibernate.jpa.spi;
|
||||||
*
|
*
|
||||||
* @author Gail Badner
|
* @author Gail Badner
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) Not actually sure what the original intent of this
|
* @deprecated Not actually sure what the original intent of this
|
||||||
* was; but it is not used as of 6.0, so slating for removal
|
* was; but it is not used as of 6.0, so slating for removal
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public interface NullTypeBindableParameterRegistration<T> extends ParameterRegistration<T> {
|
public interface NullTypeBindableParameterRegistration<T> extends ParameterRegistration<T> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -16,9 +16,9 @@ import org.jboss.logging.Logger;
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) : see {@link BatchLoadSizingStrategy} instead
|
* @deprecated see {@link BatchLoadSizingStrategy} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public enum BatchFetchStyle {
|
public enum BatchFetchStyle {
|
||||||
/**
|
/**
|
||||||
* The legacy algorithm where we keep a set of pre-built batch sizes based on
|
* The legacy algorithm where we keep a set of pre-built batch sizes based on
|
||||||
|
|
|
@ -13,9 +13,9 @@ import org.hibernate.engine.spi.Mapping;
|
||||||
* A relational object which may be created using DDL
|
* A relational object which may be created using DDL
|
||||||
* @author Gavin King
|
* @author Gavin King
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.2) not needed anymore.
|
* @deprecated not needed anymore.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
public interface RelationalModel {
|
public interface RelationalModel {
|
||||||
String sqlCreateString(Mapping p, SqlStringGenerationContext context, String defaultCatalog, String defaultSchema) throws HibernateException;
|
String sqlCreateString(Mapping p, SqlStringGenerationContext context, String defaultCatalog, String defaultSchema) throws HibernateException;
|
||||||
String sqlDropString(SqlStringGenerationContext context, String defaultCatalog, String defaultSchema);
|
String sqlDropString(SqlStringGenerationContext context, String defaultCatalog, String defaultSchema);
|
||||||
|
|
|
@ -47,22 +47,22 @@ public interface Selectable {
|
||||||
String getCustomWriteExpression();
|
String getCustomWriteExpression();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 6.0) new read-by-position paradigm means that these generated
|
* @deprecated new read-by-position paradigm means that these generated
|
||||||
* aliases are no longer needed
|
* aliases are no longer needed
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
String getAlias(Dialect dialect);
|
String getAlias(Dialect dialect);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 6.0) new read-by-position paradigm means that these generated
|
* @deprecated new read-by-position paradigm means that these generated
|
||||||
* aliases are no longer needed
|
* aliases are no longer needed
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
String getAlias(Dialect dialect, Table table);
|
String getAlias(Dialect dialect, Table table);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (since 6.0) use {@link #getCustomWriteExpression()} instead
|
* @deprecated use {@link #getCustomWriteExpression()} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
String getTemplate(Dialect dialect, SqmFunctionRegistry functionRegistry);
|
String getTemplate(Dialect dialect, SqmFunctionRegistry functionRegistry);
|
||||||
}
|
}
|
||||||
|
|
|
@ -301,9 +301,9 @@ public abstract class SimpleValue implements KeyValue {
|
||||||
* {@link #createIdentifierGenerator(IdentifierGeneratorFactory, Dialect, String, String, RootClass)} was never
|
* {@link #createIdentifierGenerator(IdentifierGeneratorFactory, Dialect, String, String, RootClass)} was never
|
||||||
* completed.
|
* completed.
|
||||||
*
|
*
|
||||||
* @deprecated (as of 6.0) - not used and no longer supported.
|
* @deprecated not used and no longer supported.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public IdentifierGenerator getIdentifierGenerator() {
|
public IdentifierGenerator getIdentifierGenerator() {
|
||||||
return identifierGenerator;
|
return identifierGenerator;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,10 +19,9 @@ import org.hibernate.type.Type;
|
||||||
* @see org.hibernate.SessionFactory#getClassMetadata(Class)
|
* @see org.hibernate.SessionFactory#getClassMetadata(Class)
|
||||||
* @author Gavin King
|
* @author Gavin King
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) Use Hibernate's mapping model {@link org.hibernate.metamodel.MappingMetamodel}
|
* @deprecated Use Hibernate's mapping model {@link org.hibernate.metamodel.MappingMetamodel}
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings( {"JavaDoc"})
|
@Deprecated(since = "6.0")
|
||||||
@Deprecated
|
|
||||||
public interface ClassMetadata {
|
public interface ClassMetadata {
|
||||||
|
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -122,10 +121,10 @@ public interface ClassMetadata {
|
||||||
/**
|
/**
|
||||||
* Return the values of the mapped properties of the object
|
* Return the values of the mapped properties of the object
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.3) Use the form accepting SharedSessionContractImplementor
|
* @deprecated Use the form accepting SharedSessionContractImplementor
|
||||||
* instead
|
* instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.3")
|
||||||
@SuppressWarnings({"UnusedDeclaration"})
|
@SuppressWarnings({"UnusedDeclaration"})
|
||||||
default Object[] getPropertyValuesToInsert(Object entity, Map mergeMap, SessionImplementor session)
|
default Object[] getPropertyValuesToInsert(Object entity, Map mergeMap, SessionImplementor session)
|
||||||
throws HibernateException {
|
throws HibernateException {
|
||||||
|
@ -156,10 +155,10 @@ public interface ClassMetadata {
|
||||||
*
|
*
|
||||||
* @return The instantiated entity.
|
* @return The instantiated entity.
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.3) Use the form accepting SharedSessionContractImplementor
|
* @deprecated Use the form accepting SharedSessionContractImplementor
|
||||||
* instead
|
* instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.3")
|
||||||
default Object instantiate(Object id, SessionImplementor session) {
|
default Object instantiate(Object id, SessionImplementor session) {
|
||||||
return instantiate( id, (SharedSessionContractImplementor) session );
|
return instantiate( id, (SharedSessionContractImplementor) session );
|
||||||
}
|
}
|
||||||
|
@ -184,7 +183,6 @@ public interface ClassMetadata {
|
||||||
*
|
*
|
||||||
* @param entity The entity from which to extract the property values.
|
* @param entity The entity from which to extract the property values.
|
||||||
* @return The property values.
|
* @return The property values.
|
||||||
* @throws HibernateException
|
|
||||||
*/
|
*/
|
||||||
Object[] getPropertyValues(Object entity) throws HibernateException;
|
Object[] getPropertyValues(Object entity) throws HibernateException;
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,9 @@ import org.hibernate.type.Type;
|
||||||
*
|
*
|
||||||
* @author Gavin King
|
* @author Gavin King
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) Use Hibernate's mapping model {@link org.hibernate.metamodel.MappingMetamodel}
|
* @deprecated Use Hibernate's mapping model {@link org.hibernate.metamodel.MappingMetamodel}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public interface CollectionMetadata {
|
public interface CollectionMetadata {
|
||||||
/**
|
/**
|
||||||
* The collection key type
|
* The collection key type
|
||||||
|
|
|
@ -126,9 +126,9 @@ public interface MappingMetamodel {
|
||||||
/**
|
/**
|
||||||
* @see #locateEntityDescriptor
|
* @see #locateEntityDescriptor
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) use {@link #locateEntityDescriptor(Class)} instead
|
* @deprecated use {@link #locateEntityDescriptor(Class)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
default EntityPersister locateEntityPersister(Class<?> byClass) {
|
default EntityPersister locateEntityPersister(Class<?> byClass) {
|
||||||
return locateEntityDescriptor( byClass );
|
return locateEntityDescriptor( byClass );
|
||||||
}
|
}
|
||||||
|
@ -140,9 +140,9 @@ public interface MappingMetamodel {
|
||||||
*
|
*
|
||||||
* @throws org.hibernate.UnknownEntityTypeException If a matching EntityPersister cannot be located
|
* @throws org.hibernate.UnknownEntityTypeException If a matching EntityPersister cannot be located
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) - use {@link #getEntityDescriptor(String)} instead
|
* @deprecated - use {@link #getEntityDescriptor(String)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
EntityPersister locateEntityPersister(String byName);
|
EntityPersister locateEntityPersister(String byName);
|
||||||
|
|
||||||
String getImportedName(String name);
|
String getImportedName(String name);
|
||||||
|
|
|
@ -9,13 +9,13 @@ package org.hibernate.metamodel.model.domain;
|
||||||
/**
|
/**
|
||||||
* Hibernate extension to the JPA {@link jakarta.persistence.metamodel.EntityType} contract.
|
* Hibernate extension to the JPA {@link jakarta.persistence.metamodel.EntityType} contract.
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) Use {@link EmbeddableDomainType} instead. Originally intended
|
* @deprecated Use {@link EmbeddableDomainType} instead. Originally intended
|
||||||
* to describe the actual usage of an embeddable (the embedded) because it was 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
|
* to include the mapping (column, etc) information. However, that causes us to need
|
||||||
* multiple embeddable instances per embeddable class.
|
* multiple embeddable instances per embeddable class.
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public interface EmbeddedDomainType<J> extends EmbeddableDomainType<J> {
|
public interface EmbeddedDomainType<J> extends EmbeddableDomainType<J> {
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,9 +23,9 @@ import org.hibernate.persister.entity.EntityPersister;
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) - Prefer {@link MappingMetamodel}
|
* @deprecated - Prefer {@link MappingMetamodel}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public interface MetamodelImplementor extends MappingMetamodel, Metamodel {
|
public interface MetamodelImplementor extends MappingMetamodel, Metamodel {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -47,9 +47,9 @@ public interface Queryable extends Loadable, PropertyMapping, Joinable {
|
||||||
*
|
*
|
||||||
* @return True if the inheritance hierarchy is spread across multiple tables; false otherwise.
|
* @return True if the inheritance hierarchy is spread across multiple tables; false otherwise.
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) Use {@link EntityPersister#getSqmMultiTableMutationStrategy} instead
|
* @deprecated Use {@link EntityPersister#getSqmMultiTableMutationStrategy} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
boolean isMultiTable();
|
boolean isMultiTable();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -223,9 +223,9 @@ public final class PersisterFactoryImpl implements PersisterFactory, ServiceRegi
|
||||||
/**
|
/**
|
||||||
* The legacy constructor signature for {@link EntityPersister} implementations
|
* The legacy constructor signature for {@link EntityPersister} implementations
|
||||||
*
|
*
|
||||||
* @deprecated (as of 6.0) - use {@link #ENTITY_PERSISTER_CONSTRUCTOR_ARGS} instead
|
* @deprecated use {@link #ENTITY_PERSISTER_CONSTRUCTOR_ARGS} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
private static final Class<?>[] LEGACY_ENTITY_PERSISTER_CONSTRUCTOR_ARGS = new Class[] {
|
private static final Class<?>[] LEGACY_ENTITY_PERSISTER_CONSTRUCTOR_ARGS = new Class[] {
|
||||||
PersistentClass.class,
|
PersistentClass.class,
|
||||||
EntityDataAccess.class,
|
EntityDataAccess.class,
|
||||||
|
@ -256,9 +256,9 @@ public final class PersisterFactoryImpl implements PersisterFactory, ServiceRegi
|
||||||
/**
|
/**
|
||||||
* The constructor signature for {@link CollectionPersister} implementations
|
* The constructor signature for {@link CollectionPersister} implementations
|
||||||
*
|
*
|
||||||
* @deprecated (as of 6.0) - use {@link #COLLECTION_PERSISTER_CONSTRUCTOR_ARGS} instead
|
* @deprecated use {@link #COLLECTION_PERSISTER_CONSTRUCTOR_ARGS} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
private static final Class<?>[] LEGACY_COLLECTION_PERSISTER_CONSTRUCTOR_ARGS = new Class[] {
|
private static final Class<?>[] LEGACY_COLLECTION_PERSISTER_CONSTRUCTOR_ARGS = new Class[] {
|
||||||
Collection.class,
|
Collection.class,
|
||||||
CollectionDataAccess.class,
|
CollectionDataAccess.class,
|
||||||
|
|
|
@ -70,10 +70,10 @@ public interface PersisterFactory extends Service {
|
||||||
*
|
*
|
||||||
* @return An appropriate entity persister instance.
|
* @return An appropriate entity persister instance.
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) use {@link #createEntityPersister(PersistentClass, EntityDataAccess, NaturalIdDataAccess, RuntimeModelCreationContext)}
|
* @deprecated use {@link #createEntityPersister(PersistentClass, EntityDataAccess, NaturalIdDataAccess, RuntimeModelCreationContext)}
|
||||||
* instead
|
* instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
EntityPersister createEntityPersister(
|
EntityPersister createEntityPersister(
|
||||||
PersistentClass entityBinding,
|
PersistentClass entityBinding,
|
||||||
EntityDataAccess entityCacheAccessStrategy,
|
EntityDataAccess entityCacheAccessStrategy,
|
||||||
|
@ -87,10 +87,10 @@ public interface PersisterFactory extends Service {
|
||||||
* @param cacheAccessStrategy The cache access strategy for the collection region
|
* @param cacheAccessStrategy The cache access strategy for the collection region
|
||||||
* @param creationContext Access to additional information needed to create an EntityPersister
|
* @param creationContext Access to additional information needed to create an EntityPersister
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) use {@link #createCollectionPersister(Collection, CollectionDataAccess, RuntimeModelCreationContext)}
|
* @deprecated use {@link #createCollectionPersister(Collection, CollectionDataAccess, RuntimeModelCreationContext)}
|
||||||
* instead
|
* instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
CollectionPersister createCollectionPersister(
|
CollectionPersister createCollectionPersister(
|
||||||
Collection collectionBinding,
|
Collection collectionBinding,
|
||||||
CollectionDataAccess cacheAccessStrategy,
|
CollectionDataAccess cacheAccessStrategy,
|
||||||
|
|
|
@ -19,9 +19,9 @@ public interface ParameterRecognizer {
|
||||||
*
|
*
|
||||||
* @param sourcePosition The position within the query
|
* @param sourcePosition The position within the query
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.2) Application should use {@link org.hibernate.procedure.ProcedureCall} instead
|
* @deprecated Application should use {@link org.hibernate.procedure.ProcedureCall} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
default void outParameter(int sourcePosition) {
|
default void outParameter(int sourcePosition) {
|
||||||
throw new UnsupportedOperationException( "Recognizing native query as a function call is no longer supported" );
|
throw new UnsupportedOperationException( "Recognizing native query as a function call is no longer supported" );
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,10 @@ import org.hibernate.engine.spi.SessionImplementor;
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.2) - probably getting removed in 5.2 as well. This was an SPI contract
|
* @deprecated probably getting removed in 5.2 as well. This was an SPI contract
|
||||||
* intended for HEM that is no longer needed.
|
* intended for HEM that is no longer needed.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
public interface AfterCompletionAction extends Serializable {
|
public interface AfterCompletionAction extends Serializable {
|
||||||
void doAction(boolean successful, SessionImplementor session);
|
void doAction(boolean successful, SessionImplementor session);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,9 +17,9 @@ import org.hibernate.engine.spi.SessionImplementor;
|
||||||
*
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.2) no longer needed since integrating HEM into hibernate-core.
|
* @deprecated no longer needed since integrating HEM into hibernate-core.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
public interface ManagedFlushChecker extends Serializable {
|
public interface ManagedFlushChecker extends Serializable {
|
||||||
/**
|
/**
|
||||||
* Check whether we should perform the managed flush
|
* Check whether we should perform the managed flush
|
||||||
|
|
|
@ -107,7 +107,6 @@ public final class Template {
|
||||||
* @deprecated Only intended for annotations usage; use {@link #renderWhereStringTemplate(String, String, Dialect, SqmFunctionRegistry)} instead
|
* @deprecated Only intended for annotations usage; use {@link #renderWhereStringTemplate(String, String, Dialect, SqmFunctionRegistry)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@SuppressWarnings({ "JavaDoc" })
|
|
||||||
public static String renderWhereStringTemplate(String sqlWhereString, String placeholder, Dialect dialect) {
|
public static String renderWhereStringTemplate(String sqlWhereString, String placeholder, Dialect dialect) {
|
||||||
final SqmFunctionRegistry sqmFunctionRegistry = new SqmFunctionRegistry();
|
final SqmFunctionRegistry sqmFunctionRegistry = new SqmFunctionRegistry();
|
||||||
return renderWhereStringTemplate(
|
return renderWhereStringTemplate(
|
||||||
|
|
|
@ -21,9 +21,9 @@ import org.hibernate.query.TupleTransformer;
|
||||||
*
|
*
|
||||||
* @author Gavin King
|
* @author Gavin King
|
||||||
*
|
*
|
||||||
* @deprecated (since 6.0) Use {@link TupleTransformer} and/or {@link ResultListTransformer} instead
|
* @deprecated Use {@link TupleTransformer} and/or {@link ResultListTransformer} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public interface ResultTransformer<T> extends TupleTransformer<T>, ResultListTransformer<T>, Serializable {
|
public interface ResultTransformer<T> extends TupleTransformer<T>, ResultListTransformer<T>, Serializable {
|
||||||
@Override
|
@Override
|
||||||
default List<T> transformList(List<T> resultList) {
|
default List<T> transformList(List<T> resultList) {
|
||||||
|
|
|
@ -13,11 +13,11 @@ import org.hibernate.metamodel.ManagedTypeRepresentationStrategy;
|
||||||
/**
|
/**
|
||||||
* Contract for implementors responsible for instantiating entity/component instances.
|
* Contract for implementors responsible for instantiating entity/component instances.
|
||||||
*
|
*
|
||||||
* @deprecated (as of 6.0) This contract is no longer used by Hibernate. Implement/use
|
* @deprecated This contract is no longer used by Hibernate. Implement/use
|
||||||
* {@link org.hibernate.metamodel.spi.Instantiator} instead. See
|
* {@link org.hibernate.metamodel.spi.Instantiator} instead. See
|
||||||
* {@link ManagedTypeRepresentationStrategy}
|
* {@link ManagedTypeRepresentationStrategy}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public interface Instantiator extends Serializable {
|
public interface Instantiator extends Serializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,9 +20,9 @@ import org.hibernate.mapping.Component;
|
||||||
/**
|
/**
|
||||||
* Defines a POJO-based instantiator for use from the tuplizers.
|
* Defines a POJO-based instantiator for use from the tuplizers.
|
||||||
*
|
*
|
||||||
* @deprecated (as of 6.0) Like {@link Instantiator} itself, deprecated.
|
* @deprecated Like {@link Instantiator} itself, deprecated.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public class PojoInstantiator implements Instantiator, Serializable {
|
public class PojoInstantiator implements Instantiator, Serializable {
|
||||||
private static final CoreMessageLogger LOG = CoreLogging.messageLogger( PojoInstantiator.class.getName() );
|
private static final CoreMessageLogger LOG = CoreLogging.messageLogger( PojoInstantiator.class.getName() );
|
||||||
|
|
||||||
|
@ -34,9 +34,9 @@ public class PojoInstantiator implements Instantiator, Serializable {
|
||||||
private final boolean isAbstract;
|
private final boolean isAbstract;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (as of 6.0) See {@link PojoInstantiator}
|
* @deprecated See {@link PojoInstantiator}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public PojoInstantiator(
|
public PojoInstantiator(
|
||||||
Class<?> mappedClass,
|
Class<?> mappedClass,
|
||||||
ReflectionOptimizer.InstantiationOptimizer optimizer,
|
ReflectionOptimizer.InstantiationOptimizer optimizer,
|
||||||
|
@ -56,17 +56,17 @@ public class PojoInstantiator implements Instantiator, Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (as of 6.0) See {@link PojoInstantiator}
|
* @deprecated See {@link PojoInstantiator}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public PojoInstantiator(Component component, ReflectionOptimizer.InstantiationOptimizer optimizer) {
|
public PojoInstantiator(Component component, ReflectionOptimizer.InstantiationOptimizer optimizer) {
|
||||||
this( component.getComponentClass(), optimizer );
|
this( component.getComponentClass(), optimizer );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated (as of 6.0) See {@link PojoInstantiator}
|
* @deprecated See {@link PojoInstantiator}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
public PojoInstantiator(Class<?> componentClass, ReflectionOptimizer.InstantiationOptimizer optimizer) {
|
public PojoInstantiator(Class<?> componentClass, ReflectionOptimizer.InstantiationOptimizer optimizer) {
|
||||||
this.mappedClass = componentClass;
|
this.mappedClass = componentClass;
|
||||||
this.isAbstract = ReflectHelper.isAbstractClass( mappedClass );
|
this.isAbstract = ReflectHelper.isAbstractClass( mappedClass );
|
||||||
|
|
|
@ -38,11 +38,11 @@ public interface EntityTuplizer extends Tuplizer {
|
||||||
*
|
*
|
||||||
* @return The identifier value.
|
* @return The identifier value.
|
||||||
*
|
*
|
||||||
* @deprecated (as of 6.0) - no longer used internally and to be removed.
|
* @deprecated no longer used internally and to be removed.
|
||||||
* Use {@link org.hibernate.metamodel.mapping.EntityIdentifierMapping#getIdentifier}
|
* Use {@link org.hibernate.metamodel.mapping.EntityIdentifierMapping#getIdentifier}
|
||||||
* instead
|
* instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "6.0")
|
||||||
Object getIdentifier(Object entity, SharedSessionContractImplementor session);
|
Object getIdentifier(Object entity, SharedSessionContractImplementor session);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -242,10 +242,10 @@ public interface AuditReader {
|
||||||
* @param <T> The type of the revision entity to find
|
* @param <T> The type of the revision entity to find
|
||||||
*
|
*
|
||||||
* @return The current revision entity, to which any entries in the audit tables will be bound.
|
* @return The current revision entity, to which any entries in the audit tables will be bound.
|
||||||
* @deprecated (since 5.2), use {@link RevisionListener} instead. While this method is
|
* @deprecated use {@link RevisionListener} instead. While this method is
|
||||||
* being deprecated, expect a new API for this in 6.0.
|
* being deprecated, expect a new API for this in 6.0.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2")
|
||||||
<T> T getCurrentRevision(Class<T> revisionEntityClass, boolean persist);
|
<T> T getCurrentRevision(Class<T> revisionEntityClass, boolean persist);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -14,13 +14,13 @@ import org.hibernate.envers.internal.entities.mapper.PersistentCollectionChangeD
|
||||||
/**
|
/**
|
||||||
* Behaviours of different audit strategy for populating audit data.
|
* Behaviours of different audit strategy for populating audit data.
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.4), use {@link org.hibernate.envers.strategy.spi.AuditStrategy} instead.
|
* @deprecated use {@link org.hibernate.envers.strategy.spi.AuditStrategy} instead.
|
||||||
*
|
*
|
||||||
* @author Stephanie Pau
|
* @author Stephanie Pau
|
||||||
* @author Adam Warski (adam at warski dot org)
|
* @author Adam Warski (adam at warski dot org)
|
||||||
* @author Chris Cranford
|
* @author Chris Cranford
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.4")
|
||||||
public interface AuditStrategy extends org.hibernate.envers.strategy.spi.AuditStrategy {
|
public interface AuditStrategy extends org.hibernate.envers.strategy.spi.AuditStrategy {
|
||||||
/**
|
/**
|
||||||
* Perform the persistence of audited data for regular entities.
|
* Perform the persistence of audited data for regular entities.
|
||||||
|
@ -31,9 +31,9 @@ public interface AuditStrategy extends org.hibernate.envers.strategy.spi.AuditSt
|
||||||
* @param id Id of the entity.
|
* @param id Id of the entity.
|
||||||
* @param data Audit data to persist
|
* @param data Audit data to persist
|
||||||
* @param revision Current revision data
|
* @param revision Current revision data
|
||||||
* @deprecated (since 5.2.1), use {@link org.hibernate.envers.strategy.spi.AuditStrategy#perform(Session, String, Configuration, Object, Object, Object)}
|
* @deprecated use {@link org.hibernate.envers.strategy.spi.AuditStrategy#perform(Session, String, Configuration, Object, Object, Object)}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2.1")
|
||||||
default void perform(
|
default void perform(
|
||||||
Session session,
|
Session session,
|
||||||
String entityName,
|
String entityName,
|
||||||
|
@ -61,9 +61,9 @@ public interface AuditStrategy extends org.hibernate.envers.strategy.spi.AuditSt
|
||||||
* @param enversService The EnversService
|
* @param enversService The EnversService
|
||||||
* @param persistentCollectionChangeData Collection change data to be persisted.
|
* @param persistentCollectionChangeData Collection change data to be persisted.
|
||||||
* @param revision Current revision data
|
* @param revision Current revision data
|
||||||
* @deprecated (since 5.2.1), use {@link #performCollectionChange(Session, String, String, Configuration, PersistentCollectionChangeData, Object)}
|
* @deprecated use {@link #performCollectionChange(Session, String, String, Configuration, PersistentCollectionChangeData, Object)}
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.2.1")
|
||||||
default void performCollectionChange(
|
default void performCollectionChange(
|
||||||
Session session,
|
Session session,
|
||||||
String entityName,
|
String entityName,
|
||||||
|
|
|
@ -9,13 +9,13 @@ package org.hibernate.envers.strategy;
|
||||||
/**
|
/**
|
||||||
* Default strategy is to simply persist the audit data.
|
* Default strategy is to simply persist the audit data.
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.4), use {@link org.hibernate.envers.strategy.internal.DefaultAuditStrategy} instead.
|
* @deprecated use {@link org.hibernate.envers.strategy.internal.DefaultAuditStrategy} instead.
|
||||||
*
|
*
|
||||||
* @author Adam Warski
|
* @author Adam Warski
|
||||||
* @author Stephanie Pau
|
* @author Stephanie Pau
|
||||||
* @author Chris Cranford
|
* @author Chris Cranford
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.4")
|
||||||
public class DefaultAuditStrategy extends org.hibernate.envers.strategy.internal.DefaultAuditStrategy {
|
public class DefaultAuditStrategy extends org.hibernate.envers.strategy.internal.DefaultAuditStrategy {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,14 +25,14 @@ package org.hibernate.envers.strategy;
|
||||||
* </ul>
|
* </ul>
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @deprecated (since 5.4), use {@link org.hibernate.envers.strategy.internal.ValidityAuditStrategy} instead.
|
* @deprecated use {@link org.hibernate.envers.strategy.internal.ValidityAuditStrategy} instead.
|
||||||
*
|
*
|
||||||
* @author Stephanie Pau
|
* @author Stephanie Pau
|
||||||
* @author Adam Warski (adam at warski dot org)
|
* @author Adam Warski (adam at warski dot org)
|
||||||
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
|
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
|
||||||
* @author Chris Cranford
|
* @author Chris Cranford
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.4")
|
||||||
public class ValidityAuditStrategy extends org.hibernate.envers.strategy.internal.ValidityAuditStrategy {
|
public class ValidityAuditStrategy extends org.hibernate.envers.strategy.internal.ValidityAuditStrategy {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -321,9 +321,9 @@ public class ValidityAuditStrategy implements AuditStrategy {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated since 5.4 with no replacement.
|
* @deprecated with no replacement.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated(since = "5.4")
|
||||||
public void setRevisionTimestampGetter(Getter revisionTimestampGetter) {
|
public void setRevisionTimestampGetter(Getter revisionTimestampGetter) {
|
||||||
this.revisionTimestampGetter = revisionTimestampGetter;
|
this.revisionTimestampGetter = revisionTimestampGetter;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue