This is similar to How to escape reserved words in Hibernate's HQL. But I use JPA, so the solution isn\'t applicable.
So, how can I escape HQL keywords in JPA?
You could try something like this:
em.createQuery("INSERT INTO Count c (c.id, c.count) SELECT 1, ?").setParameter(1, id).executeUpdate();
That should make it clear to JPA that you mean properties, not keywords.