V
V
Vitaly2021-05-02 13:08:21
Java
Vitaly, 2021-05-02 13:08:21

MapStruct Java outputting data based on group?

Hello.
I am looking for and can not find how to make some class properties null when converting an entity to a dto depending on the group.
Example, there is a class, properties a b c, for authorized users, you need to return all properties, for unauthorized users, zero out b and c.
How can this be done with mapstruct?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question