HHH-17061 Remove deprecated method PersistentClass#getDiscriminatorColumnIterator
This commit is contained in:
parent
aea84e3fdc
commit
0252c16b4f
|
@ -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<>();
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue