5

I have this function written for updating price of an item:

@Transactional
@Modifying
@Query("UPDATE Item s SET s.price= :price, s.version= :version WHERE s.id= :id and s.version < :version")
void updatePrice(@Param("id") Long id, @Param("price") Double price, @Param("version") Long version);

Could it be because partial updates won't update @LastModifiedDate ?

Prabhat Ranjan
  • 400
  • 3
  • 17

0 Answers0