| Summary: | Can't set primitive type from ui as @NamedNativeQuery#resultClass | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Dmitry Geraskov <geraskov> | ||||
| Component: | JPA | Assignee: | Neil Hauge <neil.hauge> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | minor | ||||||
| Priority: | P3 | CC: | neil.hauge | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Dmitry Geraskov
Created attachment 201310 [details]
Allow primitives
Result class also could be a primitive class, should be allowed.
The current behavior isn't very desirable, but wouldn't you only specify the resultClass if you were identifying an entity? Seems odd to specify an int as the result class. Regardless, there is some work to be done here. Nail, I expected it is possible to execute a query like "SELECT count(emp1.emp_id) FROM emp emp1" with int.class result, but this is really not possible, and even Integer.class does't work. So I think the issue should be rejected. Ideally our UI would handle this more gracefully, so I would like to leave this bug open, but it probably isn't very likely that we will fix it directly. Comment on attachment 201310 [details]
Allow primitives
Marking this patch as obsolete for reporting purposes.
|