title: How to escape colon `:` within a native SQL query in Hibernate?
body: <p>I have a native SQL query that looks like that : </p>
  
  <pre><code>Query query = session.createSQLQuery("SELECT
          XMLSERIALIZE
          (CONTENT
            XMLELEMENT
            (
              NAME \"ltc:DOAATLTC\",
              XMLATTRIBUTES
              (
                'http://www.edftrading.com/Trade/Common/DoaatLTC' AS \"xmlns:ltc\",
                'http://www.edftrading.com/Trade/Common/DoaatLTCHourlyNomination' AS \"xmlns:ltchnom\"
              ),
              XMLELEMENT ( ... ) FROM ...");
  </code></pre>
  
  <p>The thing is that Hibernate interprets <code>:DOAATLTC\",</code> , <code>:ltc\",</code> , <code>:ltchnom\",</code> as parameters and expects that we give values <code>query.setString("DOAATLTC\",", ...)</code> , <code>query.setString("ltc\",", ...)</code> , <code>query.setString("ltchnom\",", ...)</code></p>
  
  <p>But I do not want Hibernate to interpret like that, so I want to escape the colon <code>:</code>. </p>
  
  <p>How to do that ?</p>