128 Commits

Author SHA1 Message Date
Filip Hrisafov
e29c25e5cb [maven-release-plugin] prepare for next development iteration 2018-07-15 19:51:45 +02:00
Filip Hrisafov
c189aa7bb5 [maven-release-plugin] prepare release 1.3.0.Beta1 2018-07-15 19:51:44 +02:00
MapStruct Team
b35126e609 #1411 Update copyright header on all files
* Use new shorter copyright header without a year
* Use SLASHSTAR_STYLE for Java files
2018-07-15 19:29:28 +02:00
Filip Hrisafov
616aaa986d #1479 Fix typos in the Javadoc 2018-07-12 23:30:37 +02:00
Filip Hrisafov
ef270caecb
#1479 Add support for Builders with multiple build methods (#1498)
* Add new @Builder annotation for defining a build method
* When there are multiple build methods look for a method named `build` and if found use it
* If @Builder is defined than look for a build method with the defined method
* When a type has multiple builder creation methods throw an exception and don't use the builder

Defaulting to a method named `build` will make sure that a correct method is selected for:
* FreeBuilder - it has two methods: `build` and `buildPartial`
* Protobuf - it has three methods: `getDefaultInstanceForType`, `build` and `buildPartial`
2018-07-12 23:16:53 +02:00
Gervais Blaise
c9bc1df132 Allow package-private mapper
Use and make the default constructor accessible to create the mapper
instance. 

fixes #1365
2018-07-12 22:12:09 +02:00
sjaakd
3a4fcb5bcb #1398 allowing @ObjectFactory methods on context, fixing javadoc 2018-05-24 22:51:51 +02:00
sjaakd
e67c849c17 #1398 allowing @ObjectFactory methods on context 2018-05-24 20:28:14 +02:00
Filip Hrisafov
7e7fcfbb94
#1317 Add support for ignoring unmapped source properties
This property has only effect on the unmapped source properties report
2018-04-25 20:45:02 +02:00
sjaakd
4f5db83de7 #1392 add option to default ignoreAll mappings in a bean mapping method 2018-04-21 09:07:13 +02:00
Jeff Smyth
48b9bd72be #1363 Add support for using default expression 2018-02-19 23:01:51 +01:00
Filip Hrisafov
e4839fce5d #1333 Add since tags for unmappedSourcePolicy() 2017-11-18 09:34:25 +01:00
spoerri
92fe1093e4 #610 Add support for unmappedSourcePolicy 2017-10-22 21:06:17 +02:00
Kevin
0192bdaf83 #571 Add Constructor Injection for Annotation Based Component Model
- Allow configuring of injection strategy (Constructor / Field)
- Default injection strategy is Field
2017-10-20 22:56:48 +02:00
Filip Hrisafov
de76a87019 [maven-release-plugin] prepare for next development iteration 2017-10-17 23:12:53 +02:00
Filip Hrisafov
a2176493e7 [maven-release-plugin] prepare release 1.2.0.Final 2017-10-17 23:12:52 +02:00
Filip Hrisafov
af8d48c797 #1281 Do not depend on deprecated sonatype parent 2017-09-07 17:47:18 +02:00
Filip Hrisafov
e79949ed0f [maven-release-plugin] prepare for next development iteration 2017-08-28 20:22:54 +02:00
Filip Hrisafov
322e77e52b [maven-release-plugin] prepare release 1.2.0.CR2 2017-08-28 20:22:54 +02:00
sjaakd
4d8bc29347 #1255 Extension of autoInheritanceStrategy, removing of name based ignore reverse mapping 2017-08-23 22:54:10 +02:00
Filip Hrisafov
2f4cf7c905 #748 Add note that the passed parameter to MappingTarget must not be null 2017-08-16 22:19:49 +02:00
Filip Hrisafov
0540a00263 [maven-release-plugin] prepare for next development iteration 2017-07-15 10:21:42 +02:00
Filip Hrisafov
03f6434aa7 [maven-release-plugin] prepare release 1.2.0.CR1 2017-07-15 10:21:41 +02:00
Filip Hrisafov
3004ea28c5 #1131 Use SourceRHS source type for update methods factories
If a SourceRHS is present then the source type of the SourceRHS and the MappingContext parameters are considered for the factory method selection, i.e. the other source parameters are ignored
2017-07-11 21:53:38 +02:00
Tillerino
00385a1cdb #611 Allow nested declaration of Mappers
* #611 Allow nested declaration of Mappers

Up until now, if a Mapper was declared as a nested interface, say
EnclosingClass.NestedMapper, the implementation of the mapper was
generated as NestedMapperImpl in the same package. The Mappers factory
class then tried to load EnclosingClass$NestedMapperImpl, which would
fail.
2017-07-07 19:03:56 +02:00
Filip Hrisafov
0d66618d45 [maven-release-plugin] prepare for next development iteration 2017-05-30 23:27:41 +02:00
Filip Hrisafov
b3e7c52076 [maven-release-plugin] prepare release 1.2.0.Beta3 2017-05-30 23:27:40 +02:00
Filip Hrisafov
2e09944b19 #1213 General code cleanups:
* #122 Use util methods when possible
* Fix some warnings in Javadoc generation
* Don't use raw classes when not needed
* Add .yml, binding.xjb and .asciidoc files to license check exclusion
2017-05-24 14:15:46 +02:00
Filip Hrisafov
267c2e98f9 #993 Add support for disabling the generation of forged mapping methods 2017-04-20 23:37:16 +02:00
Andreas Gudian
01d9997ed6 [maven-release-plugin] prepare for next development iteration 2017-03-16 20:33:20 +01:00
Andreas Gudian
daedc88425 [maven-release-plugin] prepare release 1.2.0.Beta2 2017-03-16 20:33:19 +01:00
sjaakd
e154452d53 #1126 Add new CollectionMappingStrategy TARGET_IMMUTABLE 2017-03-14 21:36:36 +01:00
Andreas Gudian
3cc8972126 [maven-release-plugin] prepare for next development iteration 2017-02-20 20:58:14 +01:00
Andreas Gudian
520451bcd8 [maven-release-plugin] prepare release 1.2.0.Beta1 2017-02-20 20:58:12 +01:00
Andreas Gudian
32bf03642c #983, #975 rephrase documentation of AfterMapping/BeforeMapping and document @Context usage 2017-02-02 21:57:26 +01:00
Andreas Gudian
ac03999170 #975 Allow calling BeforeMapping/AfterMapping methods directly on @Context params 2017-02-02 21:57:26 +01:00
Gunnar Morling
754877cece #510 Adding experimental SPI for letting AST-modifying annotation processors such as Lombok tell us about future modifications 2017-01-31 18:22:52 +01:00
Filip Hrisafov
6b07dda829 #962 Add support for mapping Java 8 Streams 2017-01-06 09:49:16 +01:00
Andreas Gudian
48d7963cca Merge branch '1.1-master' 2017-01-05 22:04:29 +01:00
Andreas Gudian
b02f8e5df5 #1032 Update license headers to 2017 2017-01-05 18:55:26 +01:00
Andreas Gudian
44fe197d3b #975 Introduce @Context annotation for passing context parameters through generated mapping methods to custom methods 2016-12-25 11:05:58 +01:00
Andreas Gudian
050c398da6 #966 Avoid missing newlines between methods and multiple newlines (generally) by adding a checkstyle rule, fixing current incarnations. 2016-12-01 21:52:58 +01:00
Remo
35b8972d76 #824 Target Bean Factory
Introduced @ObjectFactory annotation to distinguish between factory and
mapping methods. Until now this was decided based on the lack of
parameters. @ObjectFactory gives a factory access to source object by
defining them as parameters.
2016-12-01 10:38:37 +01:00
Andreas Gudian
62721b207b [maven-release-plugin] prepare for next development iteration 2016-11-18 21:45:42 +01:00
Andreas Gudian
b0b816f552 [maven-release-plugin] prepare release 1.1.0.Final 2016-11-18 21:45:41 +01:00
Andreas Gudian
44f7070e75 Update version on master branch to 1.2.0-SNAPSHOT 2016-11-07 21:08:42 +01:00
Andreas Gudian
d83be86994 [maven-release-plugin] prepare for next development iteration 2016-11-07 20:52:04 +01:00
Andreas Gudian
4eb8fae8df [maven-release-plugin] prepare release 1.1.0.CR2 2016-11-07 20:52:03 +01:00
Andreas Gudian
af68fcf616 [maven-release-plugin] prepare for next development iteration 2016-09-07 20:27:36 +02:00
Andreas Gudian
9ed807196e [maven-release-plugin] prepare release 1.1.0.CR1 2016-09-07 20:27:34 +02:00