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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.1.0.RELEASE
    • None
    • DATA
    • 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

            thon Terry Denney
            ogierke Oliver Gierke
            Archiver:
            tmarshall Trevor Marshall

            Dates

              Created:
              Updated:
              Resolved:
              Archived: