# ORMGetSessionFactory()

Returns ORM session factory instance

```
ORMGetSessionFactory( datasource=string );
```

**Returns:** object

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| datasource | string | No | datasource used for the session. if not defined, the datasource defined in application.cfc/cfapplication will be used. |  |

# Usage Notes

If ORM is not enabled for that datasource, an exception will be thrown

# Examples

*There are currently no examples for this function.*







# Categories

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