Uploaded image for project: 'Spring Data JPA'
  1. Spring Data JPA
  2. DATAJPA-617

Named query lookups might cause transaction to be rolled back

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.4 (Dijkstra SR4), 1.7 GA (Evans)
    • Component/s: Core
    • Labels:
      None

      Description

      The execution of a paged repository method backed by a JPA named query might break the currently running transaction as it tries to look up a named count query but can mitigate a lookup failure. However, the failing lookup causes the transaction to be marked as rollback (as required by the JPA specification).

      We should revisit named query validation and execution like we did for manually defined queries using @Query in DATAJPA-350.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thomasd Thomas Darimont
                Reporter:
                olivergierke Oliver Drotbohm
                Last updater:
                Oliver Drotbohm
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: