The solution to the problem consists in setting the consistency level using the Java Persistence API (JPA).
It is possible to set additional properties within @PersistenceContext
annotation:
@PersistenceContext(type = PersistenceContextType.EXTENDED, properties = { @PersistenceProperty(name = "consistency.level", value="QUORUM") })