For source you have to use Mapstruct target this notation: "."
"."
@Mapping(source = ".", target = "user") CustomerDTO CustomertoCustomerDTO(Customer customer);