ORMGetSessionFactory
Retrieve the Hibernate SessionFactory configured for this datasource or default datasource.
Method Signature
ORMGetSessionFactory(datasource=[String])Arguments
Argument
Type
Required
Description
Default
datasource
String
false
The name of the datasource to retrieve the SessionFactory for. If not specified, the Application's default datasource is used.
Examples
Omitting a datasource name will return the default session factory:
factory = ormGetSessionFactory();Pass a datasource name when working with alternate datasources within the ORM app:
factory = ormGetSessionFactory( "admin" );Related
Last updated
Was this helpful?