| Summary: | NamedQuery is not read by JPA details when there is NamedQueries used | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Jiri Peterka <peterka.jiri> | ||||
| Component: | JPA | Assignee: | Neil Hauge <neil.hauge> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | geraskov, neil.hauge | ||||
| Version: | 3.0.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 205134 [details]
Query1 missing
This usage is somewhat debatable, even though I suppose most implementations support it. Have you actually seen this used in the field, or is this more of a hypothetical situation? I guess the behaviour is not described in JPA specification, and the plugins implementation should be like in JPA library implementation (determined by the selected platform). |
Try this: 1. Create JPA project 2. Create JPA entity 3. Add this named queries @NamedQuery(name = "query1", query = "select f from Dog f") @NamedQueries(value = { @NamedQuery(name = "query2", query = "select f from Dog f"), @NamedQuery(name = "query3", query = "select f from Dog f") }) In JPA Details there are only visible query2 and query 3, query1 is missing Comment @NamedQueries, query1 is back Expected is that all queries are shown