From ed3f6c59f284e0ce0b97b93ab3cc984cf2aaac66 Mon Sep 17 00:00:00 2001 From: Theo Reichert Date: Sat, 11 Nov 2023 19:46:11 +0100 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=9CDesign=20Patterns=E2=80=9D=20and?= =?UTF-8?q?=20=E2=80=9CPersistence=E2=80=9D=20to=20=E2=80=9CArchitecture?= =?UTF-8?q?=20decisions=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/asciidoc/developer_documentation.adoc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/main/asciidoc/developer_documentation.adoc b/src/main/asciidoc/developer_documentation.adoc index a5e7aa0..c25df98 100644 --- a/src/main/asciidoc/developer_documentation.adoc +++ b/src/main/asciidoc/developer_documentation.adoc @@ -164,9 +164,19 @@ image:models/design/topLevelArchitecture.svg[] ==== Client-Server-Diagram image:models/design/clientServer.svg[] -=== Design choices -* Verwendete Muster -* Persistenz + +=== Architecture decisions + +==== Design Patterns +* Spring MVC + +==== Persistence +The application uses *Hibernate annotation based mapping* to map Java classes to database tables. As a database, *H2* is used. +The persistence is deactivated by default. To activate persistence storage, the following two lines in the file _application.properties_ have to be uncommented: +.... +# spring.datasource.url=jdbc:h2:./db/videoshop +# spring.jpa.hibernate.ddl-auto=update +.... ==== User interface image:models/design/dialogue_map.svg[Dialog Map of the Videoshop]