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

Florencia Gadea

Rank: Regular Member

Posts: 146

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.



Participate in the State of Liferay Community 2017. Help the community and even win some prizes!