# ORMQueryExecute()

Modern alias to ORMExecuteQuery(). Run an HQL query on the default ORM datasource.

**Requires Extension:** [Hibernate ORM Engine Extension](https://download.lucee.org/#FAD1E8CB-4F45-4184-86359145767C29DE)

```
ORMQueryExecute( hql=string, paramsOrUnique=any, uniqueOrQueryOptions=any, queryOptions=any );
```

**Returns:** any

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| hql | string | Yes | The HQL query string to execute. |  |
| paramsOrUnique | any | No | Struct of named parameters, array of positional parameters, or boolean unique flag. *Alias: params* |  |
| uniqueOrQueryOptions | any | No | Boolean unique flag (if params provided) or struct of query options. *Alias: unique* |  |
| queryOptions | any | No | Struct of query options: maxResults, offset, cacheable, cacheName, timeout, datasource. |  |

# Examples

*There are currently no examples for this function*







# Categories

[ORM](../../categories/orm.md)

# See Also

[EntityLoad()](entityload.md), [ORMExecuteQuery()](ormexecutequery.md)