[
https://issues.apache.org/jira/browse/DELTASPIKE-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15074235#comment-15074235
]
Thomas Hug commented on DELTASPIKE-1045:
----------------------------------------
Shouldn't "full" also include {{CriteriaSupport}}? Or should the name be more
specific? ({{EntityManagerRepository}}...)?
> 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
> Assignee: Harald Wellmann
> Fix For: 1.5.3
>
>
> 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)