From ab77c82b8a16ab66678d41e6438f361fbef00bdd Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Wed, 9 Aug 2023 12:02:54 +0200 Subject: [PATCH] HHH-17059 Remove deprecated method Table#getIndexIterator --- .../org/hibernate/mapping/DenormalizedTable.java | 14 -------------- .../src/main/java/org/hibernate/mapping/Table.java | 5 ----- 2 files changed, 19 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/DenormalizedTable.java b/hibernate-core/src/main/java/org/hibernate/mapping/DenormalizedTable.java index 72507721d0..f2a5489950 100644 --- a/hibernate-core/src/main/java/org/hibernate/mapping/DenormalizedTable.java +++ b/hibernate-core/src/main/java/org/hibernate/mapping/DenormalizedTable.java @@ -14,7 +14,6 @@ import java.util.List; import org.hibernate.Internal; import org.hibernate.boot.model.naming.Identifier; import org.hibernate.boot.model.relational.Namespace; -import org.hibernate.internal.util.collections.JoinedIterator; import org.hibernate.internal.util.collections.JoinedList; /** @@ -116,19 +115,6 @@ public class DenormalizedTable extends Table { return getUniqueKeys().values().iterator(); } - @Override @Deprecated - public Iterator getIndexIterator() { - final List indexes = new ArrayList<>(); - for ( Index parentIndex : includedTable.getIndexes().values() ) { - Index index = new Index(); - index.setName( getName() + parentIndex.getName() ); - index.setTable( this ); - index.addColumns( parentIndex.getColumns() ); - indexes.add( index ); - } - return new JoinedIterator<>( indexes.iterator(), super.getIndexIterator() ); - } - public Table getIncludedTable() { return includedTable; } diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/Table.java b/hibernate-core/src/main/java/org/hibernate/mapping/Table.java index 69f9611f73..78d4eae028 100644 --- a/hibernate-core/src/main/java/org/hibernate/mapping/Table.java +++ b/hibernate-core/src/main/java/org/hibernate/mapping/Table.java @@ -306,11 +306,6 @@ public class Table implements Serializable, ContributableDatabaseObject { return columns.values(); } - @Deprecated(since = "6.2") - public Iterator getIndexIterator() { - return getIndexes().values().iterator(); - } - public Map getIndexes() { return unmodifiableMap( indexes ); }