I've been doing a lot of research on Hexagonal Architecture aka ports and adapters. I like the concepts, but struggling with some of the practicality. For example, the Domain isn't supposed to have the database access details (implementation). Instead that should be in the Framework layer. But there's a lot of "smarts" involved with data access in order to get the right data and it would seem to me that should belong in the Domain? So I'm looking for an example Java project that practically demonstrates the interactions between the Domain, Application, and Framework layers. Anyone know if something like this exists? I've not had much luck finding it. Lots of blogs about Hexagonal Architecture concepts, but nothing with concrete examples.
I saw upvote on my comment, so I came with the idea that I will describe the best way to learn hexagonal architecture, in my opinion.
Guy talk how important are access modifiers in hexagonal architecture. Example of code
Specific only implementation. Given in comment.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.