Ok, thanks! I'll write a blog post with the answer.
2016-03-01 14:21 GMT+01:00 Emmanuel Bernard <emmanuel(a)hibernate.org>:
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(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/hibernate-dev