docs: add naked objects architecture diagram

This commit is contained in:
Ilkka Seppälä
2025-03-09 18:48:14 +02:00
parent 0904e2da3b
commit 74f5fdfea9
2 changed files with 5 additions and 0 deletions
+5
View File
@@ -44,6 +44,11 @@ Wikipedia says
>
> The naked object pattern's innovative feature arises by combining the 1st and 2nd principles into a 3rd principle: 3. The user interface shall be entirely automatically created from the definitions of the domain objects. This may be done using reflection or source code generation.
Architecture diagram
![Naked Objects Architecture Diagram](./etc/naked-objects-architecture-diagram.png)
## Programmatic Example of Naked Objects Pattern in Java
Consider a simplified example with domain objects representing books and authors. In a Java-based application using the Naked Objects pattern, we define domain objects such as `Book` and `Author`. This example illustrates how Naked Objects can streamline user interface generation and domain object manipulation.
Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB