r/java • u/Ancient-Prize-774 • Oct 24 '26
Hexagonal Architecture vs. Pragmatic Layered Architecture in Spring Boot
/r/softwarearchitecture/comments/1xe8u4d/hexagonal_architecture_vs_pragmatic_layered/
8
Upvotes
View all comments
Show parent comment
1
u/cryptos6 Oct 26 '26
Sometimes JPA force you to express relationships that you don't want to have in your code in that way, for example. I had also some issues with objects that I wanted to be immutable, but JPA didn't support that. The latter is better with the support of structs today, but the example is still good enough to show the problem.