HHH-17061 Remove PersistentClass#getUnjoinedPropertyIterator()

This commit is contained in:
Sanne Grinovero 2023-08-09 12:25:57 +02:00 committed by Sanne Grinovero
parent 58c3460f1f
commit ee85011c5d
2 changed files with 3 additions and 17 deletions

View File

@ -762,7 +762,7 @@ public abstract class PersistentClass implements IdentifiableTypeClass, Attribut
* iterator only accounts for "normal" properties (i.e. non-identifier
* properties).
* <p>
* Differs from {@link #getUnjoinedPropertyIterator} in that the returned iterator
* Differs from {@link #getUnjoinedProperties()} (followed by iterator()) in that the returned iterator
* will include properties defined as part of a join.
* <p>
* The properties defined in superclasses of the mapping inheritance are not included.
@ -803,20 +803,6 @@ public abstract class PersistentClass implements IdentifiableTypeClass, Attribut
return new JoinedList<>( list );
}
/**
* Build an iterator over the properties defined on this class <b>which
* are not defined as part of a join</b>. As with {@link #getPropertyIterator},
* the returned iterator only accounts for non-identifier properties.
*
* @return An iterator over the non-joined "normal" properties.
*
* @deprecated use {@link #getUnjoinedProperties()}
*/
@Deprecated(since = "6.0")
public Iterator<Property> getUnjoinedPropertyIterator() {
return properties.iterator();
}
/**
* Get a list of the properties defined on this class <b>which
* are not defined as part of a join</b>. As with {@link #getProperties},

View File

@ -322,7 +322,7 @@ public final class AuditMetadataGenerator extends AbstractMetadataGenerator {
LOG.infof( "Adding properties for entity: %s", persistentClass.getEntityName() );
addProperties(
entity,
persistentClass.getUnjoinedPropertyIterator(),
persistentClass.getUnjoinedProperties().iterator(),
propertyMapper,
auditingData,
persistentClass.getEntityName(),
@ -394,7 +394,7 @@ public final class AuditMetadataGenerator extends AbstractMetadataGenerator {
// Mapping unjoined properties
addProperties(
mappingData.getEntityDefinition(),
persistentClass.getUnjoinedPropertyIterator(),
persistentClass.getUnjoinedProperties().iterator(),
propertyMapper,
auditingData,
entityName,