Tassilo Karge (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f50ce4...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNjIyNTA5Y2Jj...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15454?atlOrigin=eyJpIjoiNjIyNT...
) HHH-15454 (
https://hibernate.atlassian.net/browse/HHH-15454?atlOrigin=eyJpIjoiNjIyNT...
) Primitive type requested from tuple throws exception (
https://hibernate.atlassian.net/browse/HHH-15454?atlOrigin=eyJpIjoiNjIyNT...
)
Change By: Tassilo Karge (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f50ce4...
)
The Tuple subclasses seem to be incapable of returning primitive types. That manifests in
an exception, for example in the usecase described below:
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.
Judging from the changes in this PR;
[
https://github.com/hibernate/hibernate-orm/pull/4784|https://github.com/h...]
the metamodel is intended to return primitive types. Therefore, the tuple is what needs to
be fixed.
(
https://hibernate.atlassian.net/browse/HHH-15454#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15454#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100205- sha1:6417f3f )