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

John D. Ament updated DELTASPIKE-1169:
--------------------------------------
    Attachment: create_separate_interfaces_repo.patch

Here's the patch mentioned.  If you're using EntityRepository, no change 
needed.  

> Separate concerns of EntityRepository
> -------------------------------------
>
>                 Key: DELTASPIKE-1169
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1169
>             Project: DeltaSpike
>          Issue Type: Improvement
>          Components: Data-Module
>    Affects Versions: 1.6.1
>            Reporter: John D. Ament
>            Assignee: John D. Ament
>             Fix For: 1.7.0
>
>         Attachments: create_separate_interfaces_repo.patch
>
>
> The current EntityRepository interface is good, but makes some extensions 
> inflexible.
> https://github.com/apache/deltaspike/blob/master/deltaspike/modules/data/api/src/main/java/org/apache/deltaspike/data/api/EntityRepository.java#L34
> There are three categories of methods:
> - Wrappers for low level persistence APIs.
> - Searches
> - Counts
> These three concerns should be broken out into their own interfaces, which 
> {{EntityRepository}} can then extend.  This would allow users to leverage 
> persistence and Streaming, without needing to bring in everything.



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

Reply via email to