Polishing.

Remove isProxyTypeInformation from TypeInformation. Use computeIfAbsent to fall back to user type information when attempting to add a entity to the MappingContext.

See #2485
Original pull request: #2486.
This commit is contained in:
Mark Paluch
2021-10-27 09:19:11 +02:00
parent c30f3fc8af
commit ac9d11638c
3 changed files with 16 additions and 150 deletions

View File

@@ -162,16 +162,6 @@ public interface TypeInformation<S> {
return userType.equals(getType()) ? this : ClassTypeInformation.from(userType);
}
/**
* Returns if {@link #getType()} refers to a proxy or user class.
*
* @return true if type is a proxy.
* @since 2.6
*/
default boolean isProxyTypeInformation() {
return !this.equals(getUserTypeInformation());
}
/**
* Returns a {@link ClassTypeInformation} to represent the {@link TypeInformation} of the raw type of the current
* instance.