Skip to content

Commit 9e745b4

Browse files
committed
remove more obsolete things annotated @remove
Signed-off-by: Gavin King <[email protected]>
1 parent 8eb4d8d commit 9e745b4

File tree

12 files changed

+8
-77
lines changed

12 files changed

+8
-77
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
@Target({METHOD, FIELD, TYPE})
5959
@Retention(RUNTIME)
6060
@Repeatable(Comments.class)
61-
@Deprecated
61+
@Deprecated(since="7")
6262
@Remove
6363
public @interface Comment {
6464
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
@AttributeBinderType(binder = CommentsBinder.class)
3434
@Target({METHOD, FIELD, TYPE})
3535
@Retention(RUNTIME)
36-
@Deprecated
36+
@Deprecated(since="7")
3737
@Remove
3838
public @interface Comments {
3939
Comment[] value();

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import jakarta.persistence.CacheRetrieveMode;
1414
import jakarta.persistence.CacheStoreMode;
1515
import org.hibernate.CacheMode;
16-
import org.hibernate.Remove;
1716

1817
import static java.lang.annotation.ElementType.PACKAGE;
1918
import static java.lang.annotation.ElementType.TYPE;

hibernate-core/src/main/java/org/hibernate/mapping/RootClass.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import java.util.Set;
1212

1313
import org.hibernate.MappingException;
14-
import org.hibernate.Remove;
1514
import org.hibernate.boot.Metadata;
1615
import org.hibernate.boot.spi.MetadataBuildingContext;
1716
import org.hibernate.internal.CoreLogging;
@@ -29,11 +28,6 @@
2928
public class RootClass extends PersistentClass implements TableOwner, SoftDeletable {
3029
private static final CoreMessageLogger LOG = CoreLogging.messageLogger( RootClass.class );
3130

32-
@Deprecated(since = "6.2") @Remove
33-
public static final String DEFAULT_IDENTIFIER_COLUMN_NAME = "id";
34-
@Deprecated(since = "6.2") @Remove
35-
public static final String DEFAULT_DISCRIMINATOR_COLUMN_NAME = "class";
36-
3731
private Property identifierProperty;
3832
private KeyValue identifier;
3933
private Property version;

hibernate-core/src/main/java/org/hibernate/mapping/Table.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@
1717
import java.util.Objects;
1818
import java.util.function.Function;
1919

20-
import org.hibernate.HibernateException;
2120
import org.hibernate.Internal;
2221
import org.hibernate.MappingException;
23-
import org.hibernate.Remove;
24-
import org.hibernate.boot.Metadata;
2522
import org.hibernate.boot.model.naming.Identifier;
2623
import org.hibernate.boot.model.naming.ImplicitUniqueKeyNameSource;
2724
import org.hibernate.boot.model.relational.ContributableDatabaseObject;
@@ -32,9 +29,7 @@
3229
import org.hibernate.boot.spi.InFlightMetadataCollector;
3330
import org.hibernate.boot.spi.MetadataBuildingContext;
3431
import org.hibernate.dialect.Dialect;
35-
import org.hibernate.tool.schema.extract.spi.TableInformation;
3632

37-
import org.hibernate.tool.schema.internal.StandardTableMigrator;
3833
import org.jboss.logging.Logger;
3934

4035
import static java.util.Collections.emptyList;
@@ -440,16 +435,6 @@ else if ( this == table ) {
440435
}
441436
}
442437

443-
@Deprecated(since = "6.2") @Remove
444-
public Iterator<String> sqlAlterStrings(
445-
Dialect dialect,
446-
Metadata metadata,
447-
TableInformation tableInfo,
448-
SqlStringGenerationContext sqlStringGenerationContext) throws HibernateException {
449-
return StandardTableMigrator.sqlAlterStrings(this, dialect, metadata, tableInfo, sqlStringGenerationContext )
450-
.iterator();
451-
}
452-
453438
public boolean isPrimaryKey(Column column) {
454439
return hasPrimaryKey()
455440
&& getPrimaryKey().getColumnSpan() == 1

hibernate-core/src/main/java/org/hibernate/query/Query.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,10 @@ default Query<R> applyLoadGraph(@SuppressWarnings("rawtypes") RootGraph graph) {
355355
* Apply the given {@linkplain LockOptions lock options} to this
356356
* query. Alias-specific lock modes in the given lock options are
357357
* merged with any alias-specific lock mode which have already been
358-
* {@linkplain #setAliasSpecificLockMode(String, LockMode) set}. If
359-
* a lock mode has already been specified for an alias that is among
360-
* the aliases in the given lock options, the lock mode specified in
361-
* the given lock options overrides the lock mode that was already
362-
* set.
358+
* {@linkplain #setLockMode(String, LockMode) set}. If a lock mode
359+
* has already been specified for an alias that is among the aliases
360+
* in the given lock options, the lock mode specified in the given
361+
* lock options overrides the lock mode that was already set.
363362
*
364363
* @param lockOptions The lock options to apply to the query.
365364
*

hibernate-core/src/main/java/org/hibernate/query/SelectionQuery.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.hibernate.LockMode;
2525
import org.hibernate.LockOptions;
2626
import org.hibernate.NonUniqueResultException;
27-
import org.hibernate.Remove;
2827
import org.hibernate.ScrollMode;
2928
import org.hibernate.ScrollableResults;
3029
import org.hibernate.Session;
@@ -588,14 +587,6 @@ default Stream<R> stream() {
588587
@Incubating
589588
SelectionQuery<R> setOrder(Order<? super R> order);
590589

591-
/**
592-
* Specify a {@link LockMode} to apply to a specific alias defined in the query
593-
*
594-
* @deprecated use {@link #setLockMode(String, LockMode)}
595-
*/
596-
@Deprecated(since = "6.2") @Remove
597-
SelectionQuery<R> setAliasSpecificLockMode(String alias, LockMode lockMode);
598-
599590
/**
600591
* Specifies whether follow-on locking should be applied
601592
*/

hibernate-core/src/main/java/org/hibernate/query/spi/AbstractSelectionQuery.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -429,17 +429,6 @@ public SelectionQuery<R> setHibernateLockMode(LockMode lockMode) {
429429
return this;
430430
}
431431

432-
/**
433-
* Specify a LockMode to apply to a specific alias defined in the query
434-
*
435-
* @deprecated use {{@link #setLockMode(String, LockMode)}}
436-
*/
437-
@Override @Deprecated
438-
public SelectionQuery<R> setAliasSpecificLockMode(String alias, LockMode lockMode) {
439-
getLockOptions().setAliasSpecificLockMode( alias, lockMode );
440-
return this;
441-
}
442-
443432
/**
444433
* Specifies whether follow-on locking should be applied?
445434
*/

hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmSelectionQueryImpl.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -435,17 +435,6 @@ public SqmSelectionQuery<R> setHibernateLockMode(LockMode lockMode) {
435435
return this;
436436
}
437437

438-
/**
439-
* Specify a {@link LockMode} to apply to a specific alias defined in the query
440-
*
441-
* @deprecated use {{@link #setLockMode(String, LockMode)}}
442-
*/
443-
@Override @Deprecated
444-
public SqmSelectionQuery<R> setAliasSpecificLockMode(String alias, LockMode lockMode) {
445-
super.setAliasSpecificLockMode( alias, lockMode );
446-
return this;
447-
}
448-
449438
/**
450439
* Specify a {@link LockMode} to apply to a specific alias defined in the query
451440
*/

hibernate-core/src/main/java/org/hibernate/query/sqm/spi/DelegatingSqmSelectionQueryImplementor.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.hibernate.Incubating;
2121
import org.hibernate.LockMode;
2222
import org.hibernate.LockOptions;
23-
import org.hibernate.Remove;
2423
import org.hibernate.ScrollMode;
2524
import org.hibernate.ScrollableResults;
2625
import org.hibernate.graph.GraphSemantic;
@@ -298,14 +297,6 @@ public SqmSelectionQueryImplementor<R> setOrder(Order<? super R> order) {
298297
return this;
299298
}
300299

301-
@Override
302-
@Remove
303-
@Deprecated(since = "6.2")
304-
public SqmSelectionQueryImplementor<R> setAliasSpecificLockMode(String alias, LockMode lockMode) {
305-
getDelegate().setAliasSpecificLockMode( alias, lockMode );
306-
return this;
307-
}
308-
309300
@Override
310301
public SqmSelectionQueryImplementor<R> setFollowOnLocking(boolean enable) {
311302
getDelegate().setFollowOnLocking( enable );

0 commit comments

Comments
 (0)