Primitive type requested from tuple throws exception

Description

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;

the metamodel is intended to return primitive types. Therefore, the tuple is what needs to be fixed.

Attachments

1

Activity

Show:

Tassilo Karge August 18, 2022 at 11:46 AM

Would be solved for 5.6 with this PR:

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created August 18, 2022 at 8:28 AM
Updated August 30, 2022 at 1:18 PM
Resolved August 23, 2022 at 3:21 PM
Loading...