ORMExecuteQuery

Runs the HQL on the default data source specified for the application.

ORMExecuteQuery(hql, params [,unique]);
ORMExecuteQuery(hql, [,unique] [, queryoptions]);
ORMExecuteQuery(hql, params [,unique] [,queryOptions])

Argument Reference for the ORMExecuteQuery function

hql

Required: Yes
A HQL query statement

params

Required: No
A struct or array of query params.

unique

Required: No
If true returns a single entity instead of an array.

queryoptions

Required: No
A struct with possible keys: ignorecase, maxResults, cacheable, timeout, datasource

Links more information about ORMExecuteQuery


Fork me on GitHub