News for hackers. Stuff that matters.
Re:Software Architecture Patterns: 5 minute read by 5e92cb50239222b on Thursday October 28, 2021 @11:14AM (#29027072)
> in the domain model you have a user with email but do not want to expose the email.

You can usually configure that out with @JsonIgnore or something like that. Although this works only for this particular (very simple) example and won't help with e.g. flattening multiple nested objects.

Re:Software Architecture Patterns: 5 minute read by williamdclt on Thursday October 28, 2021 @12:22PM (#29027823)
At this point you already have 2 "models", in the sense of 2 "concepts" or 2 "types": the one with the field and the one without. The second one is implicitly defined with these annotations, which has a good chance to be annoying sooner or later when you need it to be explicit.