I have a native SQL query that looks like that :
Query query = session.createSQLQuery(\"SELECT XMLSERIALIZE (CONTENT XMLELEMENT
If your colon is a cast like SELECT reltuples::BIGINT then you can rewrite it as a cast(reltuples as BIGINT) to avoid the colons.
SELECT reltuples::BIGINT
cast(reltuples as BIGINT)
ref