ORMClearSession removes all the entities that are loaded or created in the session. This clears the first level cache and removes the objects that are not yet saved to the database.

ormClearSession([datasource]) → returns void

ormClearSession Argument Reference

datasource string

datasource used for the session, if nor defined the datasource defined in Application.cfc/cfapplication is used.

Examples sample code invoking the ormClearSession function

Clears the Hibernate session associated with the datasource from the application.


Fork me on GitHub