I have a named query in the named-query.xml file:
<named-query name="Score.STANDINGS_ITEMS_BY_GROUP">
<query>
SELECT NEW com.kawoolutions.bbstats.view.StandingsStatLine(
ro.id
, ...
, SUM(CASE WHEN paf.wasWithdrawn = FALSE AND paa.wasWithdrawn = FALSE AND scf.finalScore > sca.finalScore THEN 1 ELSE 0 END)
, SUM(CASE WHEN paf.wasWithdrawn = FALSE AND paa.wasWithdrawn = FALSE AND scf.finalScore < sca.finalScore THEN 1 ELSE 0 END)
, ...
Here the '<' comparison causes a JPQL error saying:
Quote:The content of elements must consist of well-formed character data or markup.
The '>' comparison causes no error OTOH.

Note, that I set all JPQL validation to Ignore, like here: http://www.eclipse.org/forums/index.php/t/369011/
Is this a bug or do you really have to escape those characters in the JPQL statement?
Why isn't the "greater than" above showing an error then?
Karsten
PS: Dali version is the one from the standard Eclipse Indigo Java EE binary release (?)
PPS: We really need an option to completely turn off ALL JPQL validation!