HHH-15285 Calling getJavaType() of @ElementCollection with basic types returns wrong type

This commit is contained in:
Andrea Boriero 2022-05-19 16:41:07 +02:00 committed by Andrea Boriero
parent 192b591c51
commit b88094e70a
1 changed files with 5 additions and 0 deletions

View File

@ -101,6 +101,11 @@ public abstract class AbstractPluralAttribute<D, C, E>
return getValueGraphType();
}
@Override
public Class<C> getJavaType() {
return getAttributeJavaType().getJavaTypeClass();
}
@Override
@SuppressWarnings("unchecked")
public SimpleDomainType<E> getValueGraphType() {