Example: {code} List<?> result = session.createQuery( "from Hypothesis h where h.description LIKE '%cave\\_' ESCAPE '\\'" ).list(); {code}
It will throw: {quote} org.hibernate.hql.ParsingException: HQL000006: The query from org.hibernate.ogm.backendtck.queries.Hypothesis h where h.description LIKE '%cave\_' ESCAPE '\' is not valid; Found unconsumed token(s): ESCAPE . at org.hibernate.hql.QueryParser.parseQuery(QueryParser.java:75) {quote}
It seems to work properly with other characters. |
|