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/20 11:23:46 UTC

[jira] [Resolved] (DELTASPIKE-1045) Convenience repository classes exposing all EntityManager methods

     [ https://issues.apache.org/jira/browse/DELTASPIKE-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harald Wellmann resolved DELTASPIKE-1045.
-----------------------------------------
    Resolution: Fixed

Added classes to {{org.apache.deltaspike.data.api}} package, created tests and added a section to the Data Module documentation.

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