HHH-12928 Remove vestigial 'naturalIdTypes' field
naturalIdTypes is unused since 3800a0e695
This commit is contained in:
parent
a189ac3220
commit
7ff7eec783
|
@ -416,22 +416,14 @@ public class NaturalIdXrefDelegate {
|
|||
*/
|
||||
private static class NaturalIdResolutionCache implements Serializable {
|
||||
private final EntityPersister persister;
|
||||
private final Type[] naturalIdTypes;
|
||||
|
||||
private Map<Serializable, CachedNaturalId> pkToNaturalIdMap = new ConcurrentHashMap<Serializable, CachedNaturalId>();
|
||||
private Map<CachedNaturalId, Serializable> naturalIdToPkMap = new ConcurrentHashMap<CachedNaturalId, Serializable>();
|
||||
private Map<Serializable, CachedNaturalId> pkToNaturalIdMap = new ConcurrentHashMap<>();
|
||||
private Map<CachedNaturalId, Serializable> naturalIdToPkMap = new ConcurrentHashMap<>();
|
||||
|
||||
private List<CachedNaturalId> invalidNaturalIdList;
|
||||
|
||||
private NaturalIdResolutionCache(EntityPersister persister) {
|
||||
this.persister = persister;
|
||||
|
||||
final int[] naturalIdPropertyIndexes = persister.getNaturalIdentifierProperties();
|
||||
naturalIdTypes = new Type[ naturalIdPropertyIndexes.length ];
|
||||
int i = 0;
|
||||
for ( int naturalIdPropertyIndex : naturalIdPropertyIndexes ) {
|
||||
naturalIdTypes[i++] = persister.getPropertyType( persister.getPropertyNames()[ naturalIdPropertyIndex ] );
|
||||
}
|
||||
}
|
||||
|
||||
public EntityPersister getPersister() {
|
||||
|
@ -472,7 +464,7 @@ public class NaturalIdXrefDelegate {
|
|||
|
||||
public void stashInvalidNaturalIdReference(Object[] invalidNaturalIdValues) {
|
||||
if ( invalidNaturalIdList == null ) {
|
||||
invalidNaturalIdList = new ArrayList<CachedNaturalId>();
|
||||
invalidNaturalIdList = new ArrayList<>();
|
||||
}
|
||||
invalidNaturalIdList.add( new CachedNaturalId( persister, invalidNaturalIdValues ) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue