[jira] [Updated] (DELTASPIKE-1158) It is not possible to override generic methods defined within delegates

2016-06-02 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-1158:
--
Component/s: Data-Module

> It is not possible to override generic methods defined within delegates
> ---
>
> Key: DELTASPIKE-1158
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1158
> Project: DeltaSpike
>  Issue Type: Bug
>  Components: Data-Module
>Affects Versions: 1.6.1
>Reporter: John D. Ament
>Assignee: John D. Ament
> Fix For: 1.6.2
>
>
> While looking at DELTASPIKE-1157, I found that its not actually possible to 
> define a custom findBy method directly in a repository.  It probably works if 
> you have a generic layer between your repositories and DeltaSpike, e.g.
> {code}
> public abstract class CustomRepo extends AbstractEntityRepository
> {code}
> The delegate method doesn't work properly due to bad match on the return 
> types.  Attached is a test case that proves it (ignore the query hints part)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (DELTASPIKE-1158) It is not possible to override generic methods defined within delegates

2016-06-01 Thread John D. Ament (JIRA)

 [ 
https://issues.apache.org/jira/browse/DELTASPIKE-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John D. Ament updated DELTASPIKE-1158:
--
Summary: It is not possible to override generic methods defined within 
delegates  (was: It is not possible to override methods defined within 
delegates)

> It is not possible to override generic methods defined within delegates
> ---
>
> Key: DELTASPIKE-1158
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1158
> Project: DeltaSpike
>  Issue Type: Bug
>Affects Versions: 1.6.1
>Reporter: John D. Ament
>Assignee: John D. Ament
> Fix For: 1.6.2
>
>
> While looking at DELTASPIKE-1157, I found that its not actually possible to 
> define a custom findBy method directly in a repository.  It probably works if 
> you have a generic layer between your repositories and DeltaSpike, e.g.
> {code}
> public abstract class CustomRepo extends AbstractEntityRepository
> {code}
> The delegate method doesn't work properly due to bad match on the return 
> types.  Attached is a test case that proves it (ignore the query hints part)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)