ORMGetSessionFactory

Note: This function has been enhanced in ColdFusion 9.0.1 to support multiple data sources in the same application. Install the ColdFusion 9 update to use the feature.

Description

Returns the Hibernate Session Factory object associated with the data source. Results in an error if ORM is not configured for this data source. If you do not specify the data source, the Hibernate session factory object associated with the default data source is returned.

For information on Session API, go to the following URL:

http://docs.jboss.org/hibernate/core/3.3/api/org/hibernate/SessionFactory.html

Category

ORM functions

Function Syntax

Ormgetsessionfactory([datasource])

See Also

ORMCloseSession, ORMClearSession, ORMFlush, ORMGetSession in Developing ColdFusion Applications.