Skip to content

Commit f1d7d86

Browse files
committed
add since to some @deprecated operations and delete a couple
Signed-off-by: Gavin King <[email protected]>
1 parent b53728f commit f1d7d86

File tree

20 files changed

+19
-77
lines changed

20 files changed

+19
-77
lines changed

hibernate-core/src/main/java/org/hibernate/annotations/Cache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@
103103
*
104104
* @deprecated Use {@link #includeLazy()} for the sake of typesafety.
105105
*/
106-
@Deprecated
106+
@Deprecated(since="6.4")
107107
String include() default "all";
108108
}

hibernate-core/src/main/java/org/hibernate/annotations/QueryHints.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private QueryHints() {
9999
* Use {@link org.hibernate.procedure.ProcedureCall} or
100100
* {@link jakarta.persistence.StoredProcedureQuery} instead.
101101
*/
102-
@Deprecated
102+
@Deprecated(since="6")
103103
public static final String CALLABLE_FUNCTION = HibernateHints.HINT_CALLABLE_FUNCTION;
104104

105105
/**

hibernate-core/src/main/java/org/hibernate/boot/archive/scan/spi/ScanOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ public interface ScanOptions {
3737
* @deprecated With move to unified schema, this setting is now deprecated and will
3838
* be removed once support for reading {@code hbm.xml} files is fully removed.
3939
*/
40-
@Deprecated
40+
@Deprecated(since="5")
4141
boolean canDetectHibernateMappingFiles();
4242
}

hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
import org.hibernate.dialect.Dialect;
7070
import org.hibernate.dialect.TimeZoneSupport;
7171
import org.hibernate.engine.config.spi.ConfigurationService;
72-
import org.hibernate.engine.config.spi.StandardConverters;
7372
import org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentImpl;
7473
import org.hibernate.engine.jdbc.spi.JdbcServices;
7574
import org.hibernate.internal.CoreLogging;

hibernate-core/src/main/java/org/hibernate/boot/model/internal/AnnotatedColumns.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,6 @@ public void setTable(Table table) {
140140
this.table = table;
141141
}
142142

143-
/**
144-
* @deprecated Use {@link #setTable(Table)} instead
145-
*/
146-
@Deprecated
147-
void setTableInternal(Table table) {
148-
this.table = table;
149-
}
150-
151143
public void addColumn(AnnotatedColumn child) {
152144
columns.add( child );
153145
}

hibernate-core/src/main/java/org/hibernate/boot/model/relational/SqlStringGenerationContext.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import org.hibernate.boot.model.naming.Identifier;
1010
import org.hibernate.dialect.Dialect;
11-
import org.hibernate.engine.jdbc.env.spi.IdentifierHelper;
1211

1312
/**
1413
* A context provided to methods responsible for generating SQL strings on startup.
@@ -21,16 +20,6 @@ public interface SqlStringGenerationContext {
2120
*/
2221
Dialect getDialect();
2322

24-
/**
25-
* @return The helper for dealing with identifiers in the current JDBC environment.
26-
* <p>
27-
* Note that the Identifiers returned from this helper already account for auto-quoting.
28-
*
29-
* @deprecated Use {@link #toIdentifier(String)} instead.
30-
*/
31-
@Deprecated
32-
IdentifierHelper getIdentifierHelper();
33-
3423
/**
3524
* Generate an Identifier instance from its simple name as obtained from mapping
3625
* information.

hibernate-core/src/main/java/org/hibernate/boot/model/relational/internal/SqlStringGenerationContextImpl.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ public Dialect getDialect() {
138138
return dialect;
139139
}
140140

141-
@Override
142-
public IdentifierHelper getIdentifierHelper() {
143-
return identifierHelper;
144-
}
145-
146141
@Override
147142
public Identifier toIdentifier(String text) {
148143
return identifierHelper != null ? identifierHelper.toIdentifier( text ) : Identifier.toIdentifier( text );

hibernate-core/src/main/java/org/hibernate/bytecode/internal/BytecodeProviderInitiator.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,14 @@
1717
import org.hibernate.bytecode.spi.BytecodeProvider;
1818
import org.hibernate.service.spi.ServiceRegistryImplementor;
1919

20-
import static org.hibernate.internal.util.NullnessUtil.castNonNull;
21-
2220
public final class BytecodeProviderInitiator implements StandardServiceInitiator<BytecodeProvider> {
2321

2422
/**
2523
* @deprecated Register a {@link BytecodeProvider} through Java {@linkplain java.util.ServiceLoader services}.
2624
*/
27-
@Deprecated( forRemoval = true )
25+
@Deprecated( forRemoval = true, since = "6.2" )
2826
public static final String BYTECODE_PROVIDER_NAME_BYTEBUDDY = "bytebuddy";
2927

30-
/**
31-
* @deprecated Register a {@link BytecodeProvider} through Java {@linkplain java.util.ServiceLoader services}.
32-
*/
33-
@Deprecated( forRemoval = true )
34-
public static final String BYTECODE_PROVIDER_NAME_NONE = "none";
35-
36-
/**
37-
* @deprecated Deprecated with no replacement
38-
*/
39-
@Deprecated( forRemoval = true )
40-
public static final String BYTECODE_PROVIDER_NAME_DEFAULT = BYTECODE_PROVIDER_NAME_BYTEBUDDY;
41-
4228
/**
4329
* Singleton access
4430
*/

hibernate-core/src/main/java/org/hibernate/cache/RegionFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
*
1414
* @deprecated Moved, but still need this definition for ehcache
1515
*/
16-
@Deprecated
16+
@Deprecated(since="4")
1717
public interface RegionFactory extends org.hibernate.cache.spi.RegionFactory {
1818
}

hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ public interface AvailableSettings
6161
/**
6262
* @deprecated Use {@link #JAKARTA_LOCK_SCOPE} instead
6363
*/
64-
@Deprecated
64+
@Deprecated(since="6.3")
6565
@SuppressWarnings("DeprecatedIsStillUsed")
6666
String JPA_LOCK_SCOPE = LegacySpecHints.HINT_JAVAEE_LOCK_SCOPE;
6767

6868
/**
6969
* @deprecated Use {@link #JAKARTA_LOCK_TIMEOUT} instead
7070
*/
71-
@Deprecated
71+
@Deprecated(since="6.3")
7272
@SuppressWarnings("DeprecatedIsStillUsed")
7373
String JPA_LOCK_TIMEOUT = LegacySpecHints.HINT_JAVAEE_LOCK_TIMEOUT;
7474

@@ -137,7 +137,7 @@ public interface AvailableSettings
137137
*
138138
* @since 5.2
139139
*/
140-
@Deprecated(forRemoval = true)
140+
@Deprecated(since="6.6", forRemoval = true)
141141
String ALLOW_REFRESH_DETACHED_ENTITY = "hibernate.allow_refresh_detached_entity";
142142

143143
/**

0 commit comments

Comments
 (0)