HHH-17061 Remove PersistentClass#getKeyClosureIterator

This commit is contained in:
Sanne Grinovero 2023-08-09 12:17:55 +02:00 committed by Sanne Grinovero
parent d9e70896cd
commit c4b0a71722
3 changed files with 0 additions and 17 deletions

View File

@ -358,9 +358,6 @@ public abstract class PersistentClass implements IdentifiableTypeClass, Attribut
public abstract List<KeyValue> getKeyClosure();
@Deprecated(since = "6.0") @Remove
public abstract Iterator<KeyValue> getKeyClosureIterator();
protected void addSubclassProperty(Property prop) {
subclassProperties.add( prop );
}

View File

@ -141,11 +141,6 @@ public class RootClass extends PersistentClass implements TableOwner {
return List.of( getTable() );
}
@Override @Deprecated
public Iterator<KeyValue> getKeyClosureIterator() {
return new SingletonIterator<>( getKey() );
}
@Override
public List<KeyValue> getKeyClosure() {
return List.of( getKey() );

View File

@ -16,7 +16,6 @@ import org.hibernate.engine.OptimisticLockStyle;
import org.hibernate.internal.FilterConfiguration;
import org.hibernate.internal.util.collections.JoinedIterator;
import org.hibernate.internal.util.collections.JoinedList;
import org.hibernate.internal.util.collections.SingletonIterator;
import org.hibernate.persister.entity.EntityPersister;
/**
@ -138,14 +137,6 @@ public class Subclass extends PersistentClass {
);
}
@Override @Deprecated
public Iterator<KeyValue> getKeyClosureIterator() {
return new JoinedIterator<>(
getSuperclass().getKeyClosureIterator(),
new SingletonIterator<>( getKey() )
);
}
@Override
public List<KeyValue> getKeyClosure() {
return new JoinedList<>(