-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
Hi,
As mentionned in the title, is there a way to avoid ignoring all fileds (> 20) of the target class without using ignore = true
I am asking this question because I have to map just the Id field and not all of them.
for example :
@Mapping(target = "opportunity", ignore = true )
@Mapping(target = "updateDate", ignore = true)
@Mapping(target = "simpleVarsRemaining", ignore = true)
@Mapping(target = "ficheEmmiesRemaining", ignore = true)
@Mapping(target = "creationDate", ignore = true)
@Mapping(target = "editionDate", ignore = true)
@Mapping(target = "ficheCalcul", ignore = true)
@Mapping(target = "institution", ignore = true)
@Mapping(target = "verificateur1", ignore = true)
@Mapping(target = "verificateur2", ignore = true)
@Mapping(target = "installateur", ignore = true)
@Mapping(target = "soustraitant", ignore = true)
@Mapping(target = "fiche", ignore = true)
@Mapping(target = "instutitionName", ignore = true)
@Mapping(target = "inFolder", ignore = true)
@Mapping(target = "isCpe", ignore = true)
@Mapping(target = "cpe", ignore = true)
@Mapping(target = "forfait", ignore = true)
@Mapping(target = "folderId", ignore = true)
@Mapping(target = "folderName", ignore = true)
@Named(value = "filterMapperForDocument")
OperationDTO toOperationDTOForDocumentFilter(Operation operation);
BohdanM-AVISPL, igr and roman-sinyakov
Metadata
Metadata
Assignees
Labels
No labels