Skip to content

Commit a8cdba2

Browse files
draft more comprehensive explanation (iluwatar#79)
1 parent 6cfbf80 commit a8cdba2

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

active-record/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ tag:
88

99
## Intent
1010

11-
An Active Record pattern provides a data persistence mechanism having that one encapsulated within
12-
the domain model itself.
13-
The following pattern might be particularly useful when it's required to quickly draft data access
14-
implementation with as less effort as possible.
11+
The Active Record pattern is a design pattern that integrates data access logic directly into the
12+
domain model, typically within the model classes themselves. This means that each domain object is
13+
responsible for its own persistence, including tasks such as database querying, saving, updating,
14+
and deleting records.
15+
16+
This pattern is particularly useful in scenarios where simplicity and rapid development are
17+
prioritized, as it allows developers to quickly implement data access functionality with minimal
18+
effort. By encapsulating persistence logic within the domain objects, the Active Record pattern
19+
promotes a straightforward and intuitive approach to working with data, making it easier to
20+
understand and maintain codebases.
1521

1622
## Explanation
1723

0 commit comments

Comments
 (0)