Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-822

Repository method lookup in super interfaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.1
    • 1.4.0
    • Data-Module
    • None

    Description

      When repository methods are looked up only methods from interfaces which are implemented directly by the repository class or a super class are considered.

      In the case of:
      interface BaseRepository<T> extends EntityRepository<T,Long>

      @Repository
      interface UserRepository extends BaseRepository<User>

      The UserRepository does not have any default repository methods at runtime.
      NullPointerException at:
      QueryHandler#createContext->CdiQueryInvocationContext()

      this could be fixed at:
      org.apache.deltaspike.data.impl.meta.RepositoryComponent#collectClasses

      Attachments

        Issue Links

          Activity

            People

              thomashug Thomas Hug
              Daniel Heinrich Daniel Heinrich
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: