John D. Ament created DELTASPIKE-1169:
-----------------------------------------

             Summary: 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


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