The function getJavaType() on Attribute returns the type of the field it represents in the entity. This may be a primitive type. However, that leads to inconsistencies, for example when selecting that attribute in a tuple query. See the related test case for an example.
ReadingJudging from the title, changes in this issue might have been fixed on the master by the following PR:;
[https://github.com/hibernate/hibernate-orm/pull/4784|https://github.com/hibernate/hibernate-orm/pull/4784|smart-link]
If that is the case metamodel is intended to return primitive types. Therefore, it just the tuple is what needs to be backported to the current 5 fixed.x version. |
|