+1

just to complete this thread the main issue is not the implementation but
the exposed API:

public interface EntityRepository<E, PK extends Serializable>

would become

public interface EntityDtoRepository<E, PK extends Serializable, Dto, DtoPk>

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/7/10 Jean-Louis MONTEIRO <jeano...@gmail.com>

> Hello guys,
>
> Just used DS Data module yesturday, and I was wondering if we could add a
> feature allowing on-the-fly conversion to DTO.
> For example, we could use modelmapper (or similar to convert DAO return
> values to DTO objects).
>
> Adding a mapper interface to delegate to would also allow people to plug
> their own implementation in.
>
> WDYT?
>
> JLouis
>
>
> 2013/7/1 Thomas Hug <thomas....@gmail.com>
>
> > Hi John
> > Thnx for the message, missed that one. Looks like there's a default
> profile
> > needed (test-persistence.xml only part of the specific server profiles).
> > Will check tonight.
> >
> >
> > On Mon, Jul 1, 2013 at 2:42 AM, John D. Ament <john.d.am...@gmail.com
> > >wrote:
> >
> > > Hi
> > >
> > > Whoever brought in the data module, can you double check your tests and
> > > license headers?
> > >
> > > I think it's just your tests, but it's failing during a rat check
> > >
> > >
> > >
> >
> https://builds.apache.org/job/DeltaSpike%20RAT-Check/org.apache.deltaspike.modules$deltaspike-data-module-impl/558/testReport/org.apache.deltaspike.data.impl/QueryResultTest/org_apache_deltaspike_data_impl_QueryResultTest/
> > >
> > > John
> > >
> >
>
>
>
> --
> Jean-Louis
>

Reply via email to