We can use the @Query annotation to modify the state of the database by also adding the @Modifying annotation to the repository method. 8.1. JPQL. ... 8.2. Native. ... 8.3. Inserts. Sep 9, 2022