Resolve all persistent entities for a persistent property.

Original pull request: #2394.
Closes #2390.
This commit is contained in:
Christoph Strobl
2021-06-25 13:29:37 +02:00
committed by Mark Paluch
parent 1f77786d89
commit 3277467b74
4 changed files with 115 additions and 19 deletions

View File

@@ -274,6 +274,11 @@ public interface TypeInformation<S> {
return !type.equals(getType()) && type.isAssignableFrom(getType());
}
/**
* Returns whether the current type is considered a {@literal null} value wrapper or not.
*
* @return {@literal true} if the type is considered to be a {@literal null} value wrapper such as {@link java.util.Optional}.
*/
default boolean isNullableWrapper() {
return NullableWrapperConverters.supports(getType());
}