For the complete documentation index, see llms.txt. This page is also available as Markdown.

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" );

Last updated

Was this helpful?