From e5b0e71dfab20d04698942f211b3232b1f82f7b2 Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Wed, 9 Aug 2023 12:13:57 +0200 Subject: [PATCH] HHH-17061 Remove PersistentClass#getDeclaredPropertyIterator --- .../src/main/java/org/hibernate/mapping/Join.java | 5 ----- .../java/org/hibernate/mapping/MappedSuperclass.java | 5 ----- .../java/org/hibernate/mapping/PersistentClass.java | 10 ---------- 3 files changed, 20 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/Join.java b/hibernate-core/src/main/java/org/hibernate/mapping/Join.java index 826f4633ce..a4d5bf9235 100644 --- a/hibernate-core/src/main/java/org/hibernate/mapping/Join.java +++ b/hibernate-core/src/main/java/org/hibernate/mapping/Join.java @@ -72,11 +72,6 @@ public class Join implements AttributeContainer, Serializable { return properties; } - @Deprecated(since = "6.0") - public Iterator getDeclaredPropertyIterator() { - return declaredProperties.iterator(); - } - public boolean containsProperty(Property property) { return properties.contains( property ); } diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/MappedSuperclass.java b/hibernate-core/src/main/java/org/hibernate/mapping/MappedSuperclass.java index d437c5a5c6..2caf740ff7 100644 --- a/hibernate-core/src/main/java/org/hibernate/mapping/MappedSuperclass.java +++ b/hibernate-core/src/main/java/org/hibernate/mapping/MappedSuperclass.java @@ -66,11 +66,6 @@ public class MappedSuperclass implements IdentifiableTypeClass { return superPersistentClass; } - @Deprecated(since = "6.0") - public Iterator getDeclaredPropertyIterator() { - return declaredProperties.iterator(); - } - public List getDeclaredProperties() { return declaredProperties; } diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/PersistentClass.java b/hibernate-core/src/main/java/org/hibernate/mapping/PersistentClass.java index 280d0fc9d0..34c3c7a6ba 100644 --- a/hibernate-core/src/main/java/org/hibernate/mapping/PersistentClass.java +++ b/hibernate-core/src/main/java/org/hibernate/mapping/PersistentClass.java @@ -1121,16 +1121,6 @@ public abstract class PersistentClass implements IdentifiableTypeClass, Attribut return new JoinedList<>( lists ); } - @Deprecated(since = "6.0") - public Iterator getDeclaredPropertyIterator() { - final ArrayList> iterators = new ArrayList<>(); - iterators.add( declaredProperties.iterator() ); - for ( Join join : joins ) { - iterators.add( join.getDeclaredPropertyIterator() ); - } - return new JoinedIterator<>( iterators ); - } - public void addMappedSuperclassProperty(Property p) { properties.add( p ); p.setPersistentClass( this );