Avoid string concatenation for JPA queries