Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Florencia Gadea
how to use distinct in dynamic query
November 20, 2012 8:39 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 145

Join Date: March 27, 2012

Recent Posts

Hi Everyone,

I would like to perform a query like this:

1select distinct field1, field2, field3, field4 from table;


table is an entity I created.

If I do it with dynamicquery, I have to use setProjection, and there I have a problem casting to my entity, I can't do it.

Regards,

Florencia.