You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "John D. Ament (JIRA)" <ji...@apache.org> on 2016/06/07 14:17:20 UTC

[jira] [Created] (DELTASPIKE-1169) Separate concerns of EntityRepository

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)