Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-3050 improve tooling support for Spring Data
  3. STS-3065

Prevent handling redeclared methods as query methods

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.1.0.RELEASE
    • Fix Version/s: None
    • Component/s: DATA
    • Labels:
      None

      Description

      Currently all query methods not carrying an @Query annotation are considered a query method to be validated. However, it is possible the user's repository interface re-declares methods of CrudRepository to reconfigure e.g. transaction configuration. Thus, a repository interface like this is valid:

      interface UserRepository extends Repository<User, Long> {
      
        User save(User user);
      }
      

      The save(…) method must not be considered a query method actually as it will be implemented by the store specific repository implementation.

        Attachments

          Activity

            People

            Assignee:
            thon Terry Denney
            Reporter:
            ogierke Oliver Gierke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: