About 50 results
Open links in new tab
  1. Mapstruct - How can I inject a spring dependency in the Generated ...

    I need to inject a spring service class in the generated mapper implementation, so that I can use it via @Mapping(target="x", expression="java(myservice.findById(id))")" Is this applicable in

  2. Map struct : When source is null, target should NOT be set to null

    Oct 10, 2017 · 27 I am trying to map nested properties using mapstruct 1.2.0.CR2. (Example map customer.address.houseNumber to userDTO.homeDTO.addressDTO.houseNo ). Expectation : I do …

  3. java - MapStruct error in VS Code: "No implementation was created for ...

    Nov 5, 2024 · After upgrading to VS Code 1.93.1 (october 2024), VS code started failing to generate MapStruct Mappers for my Java application with the following error : Error occured while building …

  4. Is this enough for MapStruct to work in Spring Boot?

    Mar 27, 2025 · Is the following enough to make MapStruct work? When I tried to implement a MapStruct DTO, it was not working. How can I identify the issue? My POM I want to integrate MapStruct into …

  5. How to use @Qualifier or @Named with @AfterMapping in mapstruct?

    How to use @Qualifier or @Named with @AfterMapping in mapstruct? Asked 7 years, 3 months ago Modified 7 years, 3 months ago Viewed 13k times

  6. java - Map custom method mapper to Mapstruct - Stack Overflow

    Jan 30, 2018 · I'm creating a poc for using Mapstruct in my future projects. Now I have one question how to map custom methods to a special target. For example I have following interface mapper: …

  7. MapStruct: How to map to existing target? - Stack Overflow

    Nov 10, 2020 · import org.mapstruct.Mapper; import org.mapstruct.MappingTarget; @Mapper public interface EntityMapper { void update(@MappingTarget Entity entity, UpdateEntity updateEntity); } …

  8. java - MapStruct - Cannot find implementation - Stack Overflow

    May 10, 2020 · Using latest Springboot and MapStruct versions and building with Maven, I am trying to implement the "Start Here" example given in the official MapStruct site My code is even simpler: …

  9. How can I map properties conditionally with MapStruct 1.2?

    Mar 2, 2018 · Is it possible with MapStruct 1.2 to map a source property with a specific value to a specific different value in the target? I think about something like this: public abstract class …

  10. Mapstruct value from application.properties - Stack Overflow

    Nov 12, 2021 · Is it possible to set a value from a field from the application.properties file? I am looking for something like @Mapping (target="version", expression="$ {application.version}&quo...