Annotation Interface Dto
Annotation to mark a field for inclusion in Data Transfer Objects (DTOs).
This annotation can be used to specify whether the field should be included
in a reference DTO.
-
Optional Element Summary
Optional Elements
-
Element Details
-
ref
boolean refWhen set totrue
, the field will be included in a reference DTO.- Default:
false
-
value
String[] valueNames of additional response DTO variants this field should appear on. For each name provided, CrudCraft will generate anEntityNameResponseDto
containing all fields that specify the same name. Example:@Dto(value = {"List"})
on fields ofUser
will produce aUserListResponseDto
.- Default:
{}
-