An Eclipse plug-in for working with MapStruct The plugin gives some assistence in projects that use MapStruct to generate bean mapping code. Code-Completions
- Completion of
target
andsource
properties in@Mapping
annotation for bean mappings and for enum mappings - Completion of
componentModel
values in@Mapper
annotation
Quick-Fixes
- Quick-Fixes for error/warning message
"Unmapped target property: ..."
:- Ignore unmapped target property adds
@Mapping( target = "prop", ignore = true )
to the method
- Ignore unmapped target property adds
- Quick-Fixes for error message
"Can't map property X prop to Y prop. Consider to declare/implement a mapping method ..."
:- Add method: Y toY(X prop) adds an appropriate method declaration to the mapper.
- Ignore unmapped target property adds
@Mapping( target = "prop", ignore = true )
to the method.
Categories: Editor, IDE, Programming Languages, Tools
Tags: mapstruct, bean mapping, code generator
Additional Details
Eclipse Versions: 2021-06 (4.20), 2021-03 (4.19), 2020-12 (4.18), 2020-09 (4.17), 2020-06 (4.16), 2020-03 (4.15), 2019-12 (4.14), 2019-09 (4.13), 2019-06 (4.12), 2019-03 (4.11), 2018-12 (4.10), 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6), Mars (4.5), Luna (4.4), 2021-09 (4.21), 2021-12 (4.22), 2022-03 (4.23), 2022-06 (4.24), 2022-09 (4.25), 2022-12 (4.26), 2023-03 (4.27), 2023-06 (4.28), 2023-09 (4.29), 2023-12 (4.30), 2024-03 (4.31), 2024-06 (4.32), 2024-09 (4.33)
Platform Support: Windows, Mac, Linux/GTK
Organization Name: MapStruct
Development Status: Alpha
Date Created: Wednesday, April 20, 2016 - 15:01
License: Apache 2.0
Date Updated: Friday, October 6, 2023 - 10:48
Submitted by: Andreas Gudian
Date | Ranking | Installs | Clickthroughs |
---|---|---|---|
October 2024 | 81/551 | 93 | 15 |
September 2024 | 101/642 | 301 | 74 |
August 2024 | 88/641 | 301 | 54 |
July 2024 | 95/663 | 297 | 56 |
June 2024 | 83/681 | 404 | 59 |
May 2024 | 117/682 | 295 | 76 |
April 2024 | 101/687 | 378 | 64 |
March 2024 | 104/694 | 378 | 60 |
February 2024 | 103/687 | 333 | 63 |
January 2024 | 106/691 | 363 | 75 |
December 2023 | 102/671 | 341 | 67 |
November 2023 | 115/686 | 355 | 67 |
Unsuccessful Installs
Unsuccessful Installs in the last 7 Days: 6
Count | Error Message |
---|---|
6 | Cannot continue the operation. There is another install operation in progress. |
Reviews Add new review
Error on Eclipse 2022-09 version
Submitted by Philippe Gioseffi on Mon, 09/26/2022 - 17:44
Compiler now gives a compilation error: Description Resource Path Location Type
Internal error in the mapping processor: java.lang.ClassCastException: class org.eclipse.jdt.internal.compiler.lookup.RecordComponentBinding cannot be cast to class org.eclipse.jdt.internal.compiler.lookup.FieldBinding (org.eclipse.jdt.internal.compiler.lookup.RecordComponentBinding and org.eclipse.jdt.internal.compiler.lookup.FieldBinding are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @2381a837) at org.eclipse.jdt.internal.compiler.apt.model.TypesImpl$3.find(TypesImpl.java:145) at org.eclipse.jdt.internal.compiler.apt.model.TypesImpl.findMemberInHierarchy(TypesImpl.java:208) at org.eclipse.jdt.internal.compiler.apt.model.TypesImpl.asMemberOf(TypesImpl.java:142) at org.mapstruct.ap.internal.util.AbstractTypeUtilsDecorator.asMemberOf(AbstractTypeUtilsDecorator.java:129) at org.mapstruct.ap.internal.model.BeanMappingMethod$Builder.getConstructorAccessor(BeanMappingMethod.java:723) at org.mapstruct.ap.internal.model.BeanMappingMethod$Builder.build(BeanMappingMethod.java:232) at org.mapstruct.ap.internal.processor.MapperCreationProcessor.getMappingMethods(MapperCreationProcessor.java:418) at org.mapstruct.ap.internal.processor.MapperCreationProcessor.getMapper(MapperCreationProcessor.java:181) at org.mapstruct.ap.internal.processor.MapperCreationProcessor.process(MapperCreationProcessor.java:135) at org.mapstruct.ap.internal.processor.MapperCreationProcessor.process(MapperCreationProcessor.java:82) at org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:350) at org.mapstruct.ap.MappingProcessor.processMapperTypeElement(MappingProcessor.java:330) at org.mapstruct.ap.MappingProcessor.processMapperElements(MappingProcessor.java:279) at org.mapstruct.ap.MappingProcessor.process(MappingProcessor.java:174) at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:142) at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:124) at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:172) at org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:138) at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:953) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:450) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:426) at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:379) at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:214) at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:311) at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:79) at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:273) at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:188) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:1024) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:254) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:311) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:400) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:403) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:514) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:462) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:544) at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:524) at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:413) at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) AcumuloMapper.java /api-springboot-register-club/src/main/java/com/cvc/register/club/mapper line 10 Annotation Problem (Java 6 processor)