[
https://issues.apache.org/jira/browse/DELTASPIKE-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15318742#comment-15318742
]
John D. Ament commented on DELTASPIKE-1169:
-------------------------------------------
Yep, plan to tonight.
Basically, I want to make sure its seamless to an existing user, but a user who
may want to take advantage of the new stream/optional capabilities may run into
some issues leveraging the existing interface.
> 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)