GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Improve Lombok integration documentation · Issue #3374 · mapstruct/mapstruct Closed Labels Milestone DescriptionExpected behaviorAssuming the following code and configuration below, I expect the compilation to succeed and the mapper to generate something like this: public Foo.CarDto toDto(Foo.Car car) { if (car == null) { return null; } else { Foo.CarDto carDto = new Foo.CarDto(); carDto.setEWhatever2(car.getEWhatever1()); return carDto; } } Actual behaviorCompilation fails and no implementation is generated. Steps to reproduce the problem
@Mapper public interface BadMapper { @Mapping(target = "eWhatever2", source = "eWhatever1") CarDto toDto(Car car); } @Data public class Car { private String eWhatever1; } @Data public class CarDto { private String eWhatever2; } It is important the 1st letter of the variable is lowercase and the 2nd one is uppercase.
MapStruct VersionMapStruct 1.5.3.Final Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |