Skip to content

Db.createQuery() no longer accepts an EQL query string #3733

@freemant2000

Description

@freemant2000

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions