User Guide Cancel

ORMGetSessionFactory

 

ORMGetSessionFactory returns the underlying Hibernate SessionFactory object.

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:

Category

Syntax

ORMGetsSessionFactory(datasource)
ORMGetsSessionFactory(datasource)
ORMGetsSessionFactory(datasource)

Parameters

Parameter

Description

datasource

(Optional) The datasource  to be used.

See Also

ORMCloseSessionORMClearSessionORMFlushORMGetSession in Developing ColdFusion Applications.

Get help faster and easier

New user?