[ 
https://issues.apache.org/jira/browse/DELTASPIKE-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15074957#comment-15074957
 ] 

Harald Wellmann commented on DELTASPIKE-1045:
---------------------------------------------

Oh yes, I forgot about {{CriteriaSupport}}, I'll add that. 

Regarding the name, any better suggestion is welcome... I had asked on the 
mailing list before I started. The beauty contest is still open ;-)

> 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)

Reply via email to