[hibernate-dev] [HSEARCH] Projection into POJO
Emmanuel Bernard
emmanuel at hibernate.org
Tue Mar 1 08:21:44 EST 2016
Yes that's the official way. There is a POJO resulttransformer of sort
in ORM's codebase AFAIR.
On Mon 2016-02-29 19:06, Gunnar Morling wrote:
> Hi,
>
> I got an interesting question during my talk today which I couldn't
> answer right away: Is it possible to select a projection resulting
> from a full-text query into a POJO/DTO?
>
> After checking on the API of FullTextQuery again, I now realize that a
> ResultTransformer could be used to instantiate POJOs based on result
> rows.
>
> Is this as good as it gets or is there any other, better way?
>
> Thanks,
>
> --Gunnar
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
More information about the hibernate-dev
mailing list