Remove JPA criteria query from purchase incrementing