Less than and greater than JPA update