# Lucee skill: ORM

Hibernate ORM: setup, entity mapping, relationships, sessions, transactions, troubleshooting.

Fetch a recipe with `https://docs.lucee.org/recipes/<id>.md`. "Since" is the first Lucee version with the feature.

| ID | Title | Description | Since | Keywords |
|----|-------|-------------|-------|----------|
| `orm-caching` | ORM - Caching | Configuring the Hibernate second-level cache and query cache with EHCache in Lucee ORM | - | ORM, caching, second-level cache, query cache, EHCache, cacheProvider, ormEvictEntity, Hibernate cache |
| `orm-configuration` | ORM - Configuration | Complete guide to ORM settings, schema management, naming strategies, and custom Hibernate mappings in Lucee | - | ORM, ormSettings, Hibernate, schema management, dbCreate, naming strategy, Application.cfc, cfcMapping |
| `orm-entity-mapping` | ORM - Entity Mapping | Defining ORM entities, property types, primary key strategies, computed properties, and inheritance patterns in Lucee | - | ORM, entity mapping, persistent, primary key, column, fieldtype, generator, inheritance |
| `orm-events` | ORM - Events | Entity lifecycle events, global event handlers, event firing order, and patterns for setting values in preInsert/preUpdate handlers in Lucee ORM | - | ORM, lifecycle events, preInsert, preUpdate, postLoad, event handler, global event handler, audit logging |
| `orm-getting-started` | ORM - Getting Started | Quick start guide to using ORM in Lucee: enable ORM, define an entity, and perform CRUD operations | - | ORM, Hibernate, entity, entitySave, entityLoad, CRUD, Application.cfc, ormEnabled |
| `orm-logging` | ORM - Logging and Debugging | ORM logging settings, debugging techniques, inspecting generated SQL, savemapping, and advanced Hibernate session API in Lucee | - | ORM, logging, debugging, SQL, savemapping, ormGetSession, Hibernate logging, showSql |
| `orm-migration-guide` | ORM - Migration Guide | What's new in the 5.6 ORM extension, migrating from older versions, and migrating from Adobe ColdFusion ORM to Lucee | - | ORM, migration, Hibernate 5.6, Adobe ColdFusion, ACF, upgrade, breaking changes, orm extension |
| `orm-querying` | ORM - Querying | HQL queries, entity loading functions, pagination, bulk DML, JOIN FETCH, aggregate functions, and query caching in Lucee ORM | - | ORM, HQL, entityLoad, ormExecuteQuery, pagination, JOIN FETCH, bulk DML, query cache |
| `orm-relationships` | ORM - Relationships | Mapping relationships between ORM entities: many-to-one, one-to-many, one-to-one, many-to-many, collections, cascade, fetching strategies, and batch loading | - | ORM, relationships, many-to-one, one-to-many, many-to-many, cascade, lazy loading, batch loading |
| `orm-session-and-transactions` | ORM - Sessions and Transactions | Understanding ORM sessions, entity lifecycle states, flush behaviour, dirty checking, transactions, savepoints, and multi-datasource usage in Lucee | - | ORM, session, transaction, flush, dirty checking, ormFlush, savepoint, entity lifecycle |
| `orm-troubleshooting` | ORM - Troubleshooting | Common ORM pitfalls, error messages decoded, performance tips, and design patterns for Lucee ORM | - | ORM, troubleshooting, performance, N+1, lazy loading, error messages, design patterns, session traps |
