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

Convenience repository classes exposing all EntityManager methods

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.2
    • 1.5.3
    • Data-Module
    • None

    Description

      For the benefit of DeltaSpike Data users who frequently use EntityManager methods not exposed by the EntityRepository API, provide new API classes which do expose these methods by extending or implementing EntityManagerDelegate:

      public interface FullEntityRepository<E, PK extends Serializable>
          extends EntityRepository<E, PK>, EntityManagerDelegate<E> {
      }
      
      public abstract class AbstractFullEntityRepository<E, PK extends Serializable>
          extends AbstractEntityRepository<E, PK>
          implements EntityManagerDelegate<E> {
      
      }
      

      This will enable end users to simply write

      public interface CustomerRepository extends FullEntityRepository<Customer, Long> {}
      

      to get access to all EntityManager methods.

      Attachments

        Activity

          People

            hwellmann Harald Wellmann
            hwellmann Harald Wellmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: