mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-13 14:44:48 +00:00
HHH-16784 Fix type resolution for generic interface properties
This commit is contained in:
parent
e272e012d2
commit
fd661534d7
@ -236,7 +236,7 @@ public static <Y> DomainType<Y> determineSimpleType(ValueContext typeContext, Me
|
||||
switch ( typeContext.getValueClassification() ) {
|
||||
case BASIC: {
|
||||
Class returnedClass = typeContext.getJpaBindableType();
|
||||
if ( returnedClass.isAssignableFrom( Object.class ) ) {
|
||||
if ( returnedClass.isInterface() || returnedClass.isAssignableFrom( Object.class ) ) {
|
||||
final SimpleValue simpleValue = (SimpleValue) typeContext.getHibernateValue();
|
||||
if ( simpleValue.getTypeParameters() != null && typeContext.getAttributeMetadata()
|
||||
.getOwnerType() instanceof EntityDomainType ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user