There's no other (easy) way to query database, aside from using the Entity Engine (which was what I suggested).

If you're worried about performance hit with a huge (and unconditional) cross-product, see http://www.nabble.com/forum/ViewPost.jtp?post=12590081&framed=y and https://issues.apache.org/jira/browse/OFBIZ-1232

Jonathon

vijay Si wrote:
Hi Jonathon,

i cannot use the view-entity for querrying, as it would cause a performance
hit. Is there any other method to get the above querry. Do u know of any
ways to do it through bsh script.


Regards


On 9/15/07, Jonathon -- Improov <[EMAIL PROTECTED]> wrote:
Use the GenericDelegator and related classes, I think. Or maybe not. I
can't recall the aggregate
functions there.

The entity definitions do have those, though. The <view-entity>? Oh yes,
the <view-entity>.

Try using DynamicViewEntity to construct a <view-entity>.

Jonathon

vijay Si wrote:
Is there any funtionality provided for using aggregate functions
(sum,min,max..) and count()  for querrying to data base through bsh.

for egg: how can we write following in BSH :

Select sum(order_id),sum(grand_total) from order_header  where
order_type_id="PURCHASE_ORDER";

Regards



------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.487 / Virus Database: 269.13.19/1008 - Release Date:
9/14/2007 8:59 AM




------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.19/1008 - Release Date: 9/14/2007 8:59 AM

Reply via email to