-
-
Notifications
You must be signed in to change notification settings - Fork 265
Db.createQuery() no longer accepts an EQL query string #3733
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels