Login  Register

Users - what is the functionality of this line

Posted by puranisank on Mar 29, 2006; 8:54am
URL: http://ofbiz.116.s1.nabble.com/Users-what-is-the-functionality-of-this-line-tp138195.html

Hi,
The line "reviews = product.getRelatedCache("ProductReview", null, UtilMisc.toList("-postedDateTime"));" is within,

"applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh"

I think this line creates a query, "select * from Product_Review order by posted_Date_Time desc";

The symbol "-" inside UtilMisc.toList("-postedDateTime") says the order is descending.

The null inside the statement product.getRelatedCache("ProductReview",null,...) denotes that there is no any condition in this query.

This line is essential for displaying the small images for the selected category.

Can anyone please give me your suggestions if I am correct or not.

Regards
S.Purani




 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users