[root]
package1/
application/
domain/
use-cases/
ports/
adapters/
[root]
package1/
application/
domain/
use-cases/
ports/
adapters/
1) Code logic and domain entities can be expressed using the best resources of the Java language and are not limited to what e.g. JPA/hibernate can provide. For example, I often want a map between non-basic entities, but hibernate can't do that.
1) Code logic and domain entities can be expressed using the best resources of the Java language and are not limited to what e.g. JPA/hibernate can provide. For example, I often want a map between non-basic entities, but hibernate can't do that.
Perhaps hexagonal architecture needs updating with the rule that ports can only use DTO classes, and it's fine for adaptors to use these.
Perhaps hexagonal architecture needs updating with the rule that ports can only use DTO classes, and it's fine for adaptors to use these.
Would it be purer approach to hexagonal architecture to use the same rule for 2ndary ports? Maybe, though I haven't adopted that.
Would it be purer approach to hexagonal architecture to use the same rule for 2ndary ports? Maybe, though I haven't adopted that.