Active Record Pattern
A domain object that also loads and saves itself. A data source architecture pattern in the Enterprise Application Patterns catalog. With Java/Spring code.
A domain object that also loads and saves itself.
- Family
- Enterprise Application Patterns
- Category
- Data Source Architecture
- Source
- Martin Fowler — Patterns of Enterprise Application Architecture
More data source architecture patterns
- Table Data Gateway — One object holds all SQL for one table.
- Row Data Gateway — One object per database row, with no domain logic.
- Data Mapper — A separate layer moves data between objects and tables.