| Summary: | No JPQL content assist is available when ORM query is inside a CDATA section | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Pascal Filion <pascal.filion> |
| Component: | JPA | Assignee: | Pascal Filion <pascal.filion> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | neil.hauge |
| Version: | 3.0 | ||
| Target Milestone: | 3.3 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Pascal Filion
Where did you run across this use case? Fix checked into trunk. The fix involves the following. - Works with and without a CDATA section. - Works with the JPQL query starting on the next line, content assist will not remove CDATA tags or the leading whitespace. - Added support for all HTML pre-defined escape characters, example: < or < which represents <. API changes: - XmlQuery - Added 3 methods (getActualQuery(), getQueryOffset(), isQueryInsideCDATASection()) to help fix alignment issue of content assist and validation text range. - JpaJpqlQueryHelper - Changed the signature of validate() to better support content assist and validation in split strings in a Java annotation and various layout of the query in XML Example 1: <query>select abs(e) from employee e where e.name = 2</query> Example 2: <query> select abs(e) from employee e where e.name = 2 </query> Example 3: <query><![CDATA[select abs(e) from employee e where e.name = 2]]></query> Example 4: <query><![CDATA[ select abs(e) from employee e where e.name = 2]]> </query> Example 5: <query>select e from Employee e where e.name <> 'JPQL'</query> The query is "select e from Employee e where e.name <> 'JPQL'" |