update jpa comparison