[hibernate-dev] [HSEARCH] Projection into POJO

Gunnar Morling gunnar at hibernate.org
Mon Feb 29 13:06:01 EST 2016


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


More information about the hibernate-dev mailing list