About 1,450,000 results
Open links in new tab
  1. Why do we have to use @Modifying annotation for queries in Data Jpa?

    CAUTION! Using @Modifying(clearAutomatically=true) will drop any pending updates on the managed entities in the persistence context spring states the following : Doing so triggers the query annotated …

  2. java - Do we need both @Transactional and @Modifying annotation in ...

    Jan 18, 2018 · Yes you need @Transactional when modifying data even with @Modifying that is only an annotation to let Spring Data know you have a @Query that changes stuff. The @Transactional …

  3. java - Why do I have to use @Modifying with @Transactional in spring ...

    Feb 21, 2020 · Whenever implementing data modifying logic using Query annotation (insert, update or delete) in JpaRepository, both @Transactional (not necessarily on the repository method) and …

  4. java - Is there any use for Spring Data JPA's @Modifying without ...

    Jan 15, 2021 · AFAIK @Modifying is there to take care of persistence context cleanup in case of INSERT/UPDATE/DELETE queries specified in @Query annotation. But what is pure @Modifying …

  5. spring - Can I skip writing flushAutomatically=true in Modifying ...

    Jul 21, 2021 · For example, instead of @Modifying(flushAutomatically = true) Only @Modifying I do understand the main point of it - to flush all cache to DB before querying. But after we write @Query, …

  6. c++ - Error 1324: [Version] section should specify ... - Stack Overflow

    Jul 21, 2024 · Gravité Code Description Projet Fichier Ligne État de la suppression Détails Erreur 1324 [Version] section should specify PnpLockdown=1 to prevent external apps from modifying installed ...

  7. spring-data-jpa to insert using @Query & @Modifying without using ...

    Aug 18, 2017 · -1 @Query Usually used to Create custom User Query to fetch the value from Data Base @Query with @Modifying used to perform the update operation in database save method used to …

  8. @Modifying annotation in the latest Spring Data JPA versions?

    Jun 29, 2022 · Now, could you pls clarify me about the following issues? 1. Should we still need to use @Modifying Annotation in the last version (s) of Spring Data JPA? If so, could you explain how …

  9. ORA-12838 How to pre-test a query before a delete and insert?

    Jun 8, 2023 · Error: ORA-12838: cannot read/modify an object after modifying it in parallel. Committing the delete defeats the purpose of course. Is there a way I can use an uncommited delete followed by …

  10. How can I change a global variable from within a function?

    4 You're modifying a variable a created in the scope of the function test(). If you want the outer a to be modified, you could do: