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

ORMGetSession

Retrieve the Hibernate Session configured for this datasource or default datasource.

Method Signature

ORMGetSession(datasource=[String])

Arguments

Argument
Type
Required
Description
Default

datasource

String

false

The name of the datasource to retrieve the Session for. If not specified, the Application's default datasource is used.

Examples

Retrieve the ORM session for the default datasource:

session = ormGetSession();

Retrieve the ORM session for the "admin" datasource:

session = ormGetSession( "admin" );

Last updated

Was this helpful?