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

ORMClearSession

Clear the Hibernate session for the current context and provided (or default) datasource

Method Signature

ORMClearSession(datasource=[String])

Arguments

Argument
Type
Required
Description
Default

datasource

String

false

The datasource on which to clear the current session. If not provided, the default datasource will be used.

Examples

Clear the ORM session for the default datasource:

ormClearSession();

Since an ORM session is datasource-specific, you can clear a specific session by passing the datasource name:

ormClearSession( "hr" );

Last updated

Was this helpful?