Whatever message this page gives is out now! Go check it out!

ORM functions

Last update:
May 18, 2026
Function Description
EntityDeleteDeletes the record from the database for the specified entity.
EntityLoadLoads and returns an array of entities for the specified entity name.
EntityLoadByExampleLoads and returns an array of objects that match the sample entity.
EntityLoadByPKLoads and returns an array of objects for given primary key.
EntityMergeAttaches the specified entity to the current ORM session.
EntityNewCreates an instance of the persistent CFC with the specified entity name.
EntityReloadReloads data for an entity that is already loaded.
EntitySaveSaves or updates data of the entity and all related entities to the database.
EntitytoQueryConverts the input entity object or the input array of entity objects to a query object.
ORMClearSessionClears the Hibernate session associated with the given data source.
ORMCloseAllSessionsCloses all Hibernate sessions in the request.
ORMCloseSessionCloses the current ORM session for the given datasource .
ORMEvictCollectionRemoves all entries with the specified relation/collection name in the specified component.
ORMEvictEntityRemoves all entries for the specified component name from the entity cache.
ORMEvictQueriesRemoves all queries from the named query cache.
ORMExecuteQueryRuns the HQL on the default data source specified for the application.
ORMFlushAllFlushes all the current Hibernate sessions in the request.
ORMFlushFlushes the current ORM session associated with the data source specified in the application.
ORMGetSessionReturns the current ORM session.
ORMGetSessionFactoryReturns the underlying Hibernate SessionFactory object.
ORMReloadReinitializes ORM for the application.If you make any change to the persistent metadata of the CFCs, then you might want to reload the ORM.

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page