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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user