You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Justin Robinson <ju...@venturenet.co.za> on 2011/03/02 14:22:35 UTC
Is there an EntityCondition for returning distinct records?
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
Re: Is there an EntityCondition for returning distinct records?
Posted by Santosh Malviya <sa...@gmail.com>.
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 <ju...@venturenet.co.za>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
>