Returns ORM session factory instance

ormGetSessionFactory([datasource]) → returns any

Argument Reference

datasource string

Name of the data source used for the session. If not defined, the default datasource defined in Application.cfc/cfapplication is used.

Sample code invoking the ormGetSessionFactory function

Returns the Factory object for the Hibernate session so you can perform operations on it.


Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub