Identity Map Pattern
Load each database row into at most one object per session. An object-relational pattern in the Enterprise Application Patterns catalog. With Java/Spring code.
Load each database row into at most one object per session.
- Family
- Enterprise Application Patterns
- Category
- Object-Relational
- Source
- Martin Fowler — Patterns of Enterprise Application Architecture
More object-relational patterns
- Unit of Work — Track changed objects and write them in one transaction.
- Lazy Load — Delay loading data until it is actually needed.
- Identity Field — Keep the database id inside the object.
- Repository — A collection-like interface for accessing domain objects.
- Foreign Key Mapping — Map object references to foreign keys between tables.
- Single Table Inheritance — Store a class hierarchy in one table with a type column.