You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Harald Wellmann (JIRA)" <ji...@apache.org> on 2015/12/19 13:06:46 UTC
[jira] [Created] (DELTASPIKE-1045) Convenience repository classes
exposing all EntityManager methods
Harald Wellmann created DELTASPIKE-1045:
-------------------------------------------
Summary: Convenience repository classes exposing all EntityManager methods
Key: DELTASPIKE-1045
URL: https://issues.apache.org/jira/browse/DELTASPIKE-1045
Project: DeltaSpike
Issue Type: New Feature
Components: Data-Module
Affects Versions: 1.5.2
Reporter: Harald Wellmann
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}}:
{code}
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> {
}
{code}
This will enable end users to simply write
{code}
public interface CustomerRepository extends FullEntityRepository<Customer, Long> {}
{code}
to get access to all {{EntityManager}} methods.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)