You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new annotation called @DTO for reflective class building that automatically maps classes to DTOs.
The annotation should have three parameters:
Class model (required) - the GenModel class that is used as a base
String[] omit (optional, default {}) - the properties that should be omitted. Ignored if empty or pick is present.
String[] pick (optional, default {}) - the properties that should be included. Ignored if empty.
Generated DTO classes automatically use the POJO property style. Associations are mapped to String or List/Set<String> fields that may hold the ID of the target objects. In the future, we could add an @ID annotation that could override this behaviour to use another ID type like int, long, UUID, etc..
Add a new annotation called
@DTO
for reflective class building that automatically maps classes to DTOs.The annotation should have three parameters:
Class model
(required) - theGenModel
class that is used as a baseString[] omit
(optional, default{}
) - the properties that should be omitted. Ignored if empty orpick
is present.String[] pick
(optional, default{}
) - the properties that should be included. Ignored if empty.Generated DTO classes automatically use the
POJO
property style. Associations are mapped toString
orList/Set<String>
fields that may hold the ID of the target objects. In the future, we could add an@ID
annotation that could override this behaviour to use another ID type likeint
,long
,UUID
, etc..Example
org/example/model/GenModel
:org/example/dto/GenDtos
:The text was updated successfully, but these errors were encountered: