The documentation and the comments keep referring to the usage below:
String oql =
+" where customer.name like :custName and orderDate > :minOrderDate "
+" order by customer.id, id desc "
+" limit 50 ";
List<Order> orderList = DB.createQuery(Order.class, oql)
.setParameter("custName", "Rob%")
.setParameter("minOrderDate", lastWeek)
.findList();
...
However, it seems in v17.3.0, the createQuery() method only accepts an Entity class but not an EQL query string.
As a beginner, I can't seem to find an alternative way to set the complete query string.
The documentation and the comments keep referring to the usage below:
However, it seems in v17.3.0, the createQuery() method only accepts an Entity class but not an EQL query string.
As a beginner, I can't seem to find an alternative way to set the complete query string.