Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.2
-
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.