Is there an EntityCondition for returning distinct records?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there an EntityCondition for returning distinct records?

justin.g.robinson
In the ofbiz entity engine, is there a way to ensure distinct/unique
records are returned from a query, I can't seem to find a way. I have
seen it somewhere, but I can't remember where & I'm a bit pushed for
time.
Any chance someone could help me out? Thanks

--
Regards,
Justin
Venture-Net Research & Development
Reply | Threaded
Open this post in threaded view
|

Re: Is there an EntityCondition for returning distinct records?

Santosh Malviya-3
Hello Justin,

If you are using entity-condition in xml then you have an attribute distinct
which is by default false, so you need to set it to true. If you are in
groovy or in java then setDistinct(true) can help.

--
Thanks and Regards
Santosh Malviya


On Wed, Mar 2, 2011 at 6:52 PM, Justin Robinson <[hidden email]>wrote:

> In the ofbiz entity engine, is there a way to ensure distinct/unique
> records are returned from a query, I can't seem to find a way. I have
> seen it somewhere, but I can't remember where & I'm a bit pushed for
> time.
> Any chance someone could help me out? Thanks
>
> --
> Regards,
> Justin
> Venture-Net Research & Development
>