From f4e2520c4ac750b513766f49d3b149a3fb4ce54f Mon Sep 17 00:00:00 2001 From: Sergejs Visockis Date: Thu, 28 Mar 2024 21:12:10 +0100 Subject: [PATCH] update README.md (#79) --- active-record/README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/active-record/README.md b/active-record/README.md index 7215e7de7bf2..d806e00b5b6b 100644 --- a/active-record/README.md +++ b/active-record/README.md @@ -1,27 +1,28 @@ ---- # this is so-called 'YAML front matter' used to categorize the patterns and format the web pages. Fill it as follows: -title: Best Pattern Ever # the properly formatted title -category: Creational # usable categories and tags are listed here: https://github.com/iluwatar/java-design-patterns/wiki/07.-Categories-and-Tags -language: en # Provide the language in which the pattern is done. Mostly it is in English, so we would put *en* over here. +--- +title: Active Record +category: Architectural +language: en tag: -- awesome # usable categories and tags are listed here: https://github.com/iluwatar/java-design-patterns/wiki/07.-Categories-and-Tags -- blue + - Data access --- -## Name / classification - -## Also known as - ## Intent +An Active Record pattern provides a data persistence mechanism having that one encapsulated within +the domain model itself. +While DAO pattern strictly adheres to the separation of concerns principle an Active Record encapsulates +all the data persistence and business logic within the domain model itself. +The following pattern might be particularly useful when it's required to quickly draft data access +implementation with as less effort as possible. + ## Explanation ## Class diagram -## Applicability - ## Tutorials -## Known uses +* [Panache – Active Record Pattern](https://thorben-janssen.com/panache-active-record-pattern/) +* [Active Record pattern in Java](https://objsql.hashnode.dev/active-record-pattern-in-java) ## Consequences