I have a named query in the named-query.xml file:
SELECT NEW com.kawoolutions.bbstats.view.StandingsStatLine(
, 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:
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?
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!