Reputation: 13
Can you give exact hql Query for this Sql query?
SELECT * FROM `ims_product`WHERE
quantity <= reorder_quantity AND
reorder_quantity IS NOT NULL AND
NOT(reorder_quantity=0);
Upvotes: 1
Views: 47
Reputation: 1268
Try using.
FROM `ims_product` WHERE `quantity` <= `reorder_quantity` AND `reorder_quantity` != 0;
Upvotes: 1