Orm Behavioral Patterns

The three runtime behaviours that make object-relational mapping work and produce its most confusing failures: Unit of Work, Identity Map and Lazy Load. Use when an entity was modified but never saved and the change appeared anyway, when a change was expected to persist and did not, when LazyInitializationException appears during serialisation or in a job, when the query count scales with rows displayed, when a persistence context grows until flush becomes slow, when a bulk update is invisible to loaded entities, or when Open Session In View is being turned on to make an error disappear. Does not cover the mapping itself (orm-structural-mapping), which data-access pattern to use (data-source-patterns), transaction boundaries (enterprise-transactions), or whether to cache the read at all (caching-strategies).

robsonkades 7eefc1b 4 files · 28.9 KB Updated

File contents

robsonkades/agent-skills/tree/main/skills/orm-behavioral-patterns commit 7eefc1b913

Frequently asked questions

npx skillmds@latest add robsonkades/orm-behavioral-patterns