Update jpa comparison