HHH-17061 Remove deprecated method PersistentClass#getDiscriminatorColumnIterator

This commit is contained in:
Sanne Grinovero 2023-08-09 16:05:00 +02:00 committed by Sanne Grinovero
parent aea84e3fdc
commit 0252c16b4f
2 changed files with 0 additions and 14 deletions

View File

@ -9,9 +9,7 @@ package org.hibernate.mapping;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
@ -921,11 +919,6 @@ public abstract class PersistentClass implements IdentifiableTypeClass, Attribut
return getUnjoinedProperties();
}
@Deprecated(since = "6.0")
protected Iterator<Selectable> getDiscriminatorColumnIterator() {
return Collections.emptyIterator();
}
protected void checkColumnDuplication() {
final String owner = "entity '" + getEntityName() + "'";
final HashSet<String> cols = new HashSet<>();

View File

@ -31,13 +31,6 @@ public class SingleTableSubclass extends Subclass {
return new JoinedList<>( getSuperclass().getUnjoinedProperties(), getUnjoinedProperties() );
}
@Deprecated @SuppressWarnings("deprecation")
protected Iterator<Selectable> getDiscriminatorColumnIterator() {
return isDiscriminatorInsertable() && !getDiscriminator().hasFormula()
? getDiscriminator().getSelectables().iterator()
: super.getDiscriminatorColumnIterator();
}
public Object accept(PersistentClassVisitor mv) {
return mv.accept( this );
}