Answers for "@query update jpa"

1

update query jpa

@Modifying
@Transactional //helps with exception: Executing an update/delete query
@Query("update User u set u.active = false where u.lastLoginDate < :date")
void deactivateUsersNotLoggedInSince(@Param("date") LocalDate date);
Posted by: Guest on September-15-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language