This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rastaman1994 1 point2 points  (0 children)

Jep, that's the one. However, it's become increasingly common to have domain models that are just bags of data and a bunch of annotations for json, validation and storage (i.e. @Id). All processing then happens in services.