return em.createQuery(
"SELECT doc FROM TexyDoc doc
WHERE doc.origPath LIKE CONCAT('%', :1)")
.setParameter(1, path)
leads to
QuerySyntaxException: expecting IDENT, found '1' near line 1, column 82
[SELECT doc FROM cz.oz.web.model.TexyDoc doc
WHERE doc.origPath LIKE CONCAT('%', :1)]
Why? What should be the syntax like?