Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » JPQL validation error: well-formed character data or markup
JPQL validation error: well-formed character data or markup [message #900126] Sat, 04 August 2012 06:53 Go to previous message
Karsten Wutzke is currently offline Karsten Wutzke
Messages: 110
Registered: July 2009
Senior Member
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.
index.php/fa/11024/0/
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!
 
Read Message
Read Message
Read Message
Previous Topic:Potentially spurious validation message about attribute mapping?
Next Topic:JPQL validation error: AS in SELECT (with constructor expession)
Goto Forum:
  


Current Time: Wed May 22 18:20:03 EDT 2013

Powered by FUDForum. Page generated in 3.22129 seconds