You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/07/21 02:08:20 UTC
[jira] [Commented] (DELTASPIKE-822) Repository method lookup in
super interfaces
[ https://issues.apache.org/jira/browse/DELTASPIKE-822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15387006#comment-15387006 ]
ASF GitHub Bot commented on DELTASPIKE-822:
-------------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/deltaspike/pull/15
> Repository method lookup in super interfaces
> --------------------------------------------
>
> Key: DELTASPIKE-822
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-822
> Project: DeltaSpike
> Issue Type: Bug
> Components: Data-Module
> Affects Versions: 1.2.1
> Reporter: Daniel Heinrich
> Assignee: Thomas Hug
> Fix For: 1.4.0
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)