Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1169

Separate concerns of EntityRepository

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 1.7.0
    • Data-Module
    • None

    Description

      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.

      Attachments

        Activity

          People

            johndament John D. Ament
            johndament John D. Ament
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: