105 Commits

Author SHA1 Message Date
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
347a436cda #1382 Change module for java.annotation.Generated in the documentation
closes #1382
2018-07-15 10:56:06 +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
tomoya-yokota
81f82a54a5 Document of sample code is broken. 2018-07-11 20:29:08 +02:00
tomoya-yokota
e2c8559a62 Update document on gradle-apt-plugin 2018-07-11 20:21:53 +02:00
sngrekov
b03ca8b7a9 Add sample of @Mapping annotation to @InheritInverseConfiguration 2018-07-02 10:54:57 +02:00
cvanburen
f4ed077aeb Documentation update, section 3, fixing typos 2018-06-05 23:05:21 +02:00
sjaakd
e67c849c17 #1398 allowing @ObjectFactory methods on context 2018-05-24 20:28:14 +02:00
Filip Hrisafov
7306c52529 #1415 Use Immutables AccesorNamingStrategy and BuilderProvider when immutables are present
This allows out of the box support for Immutables by picking the right default strategy when immutables are present
2018-05-01 18:26:34 +02:00
sjaakd
35f5400e00 #1401 improvements by direct assigning constants 2018-04-25 20:25:11 +02:00
sjaakd
4f5db83de7 #1392 add option to default ignoreAll mappings in a bean mapping method 2018-04-21 09:07:13 +02:00
Filip Hrisafov
43a9419c33
#1417 Add documentation about the builder support 2018-04-15 10:31:45 +02:00
Filip Hrisafov
f2ef330304
Use correct link for the JAXBBasedMapperTest 2018-03-18 11:18:55 +01:00
sjaakd
6b363f87c1 #1367 aligning @Inherit(Inverse)Conf. with strategy AUTO_INHERIT_* 2018-03-17 09:00:57 +01:00
Jeff Smyth
48b9bd72be #1363 Add support for using default expression 2018-02-19 23:01:51 +01:00
Darren Rambaud
8f88c6baa7 #1355: Adds Implicit Conversion Between java.util.Currency <~> String (#1381)
* #1355: Setting up the test(s) for new conversion between java.util.Currency and String

* #1355: Added SimpleConversion subclass to convert a Currency object to a String object and vice-versa, and registered the class to Conversions

* #1355: Initial tests written, may need to re-write some test files for readability and/or add more test case(s). Basic tests are passing at this time

* #1355: Added copyright statement, added documentation for new implicit conversion

* #1355: Added clarity to documentation

* #1355: Replaced use of one letter variables

* #1355: Resolved CheckStyle errors

* #1355: Fixes license header spacing so the license plugin no longer fails the build

* Small cleanups
2018-02-18 19:02:56 +01:00
Daniel Strobusch
3d26318301 Fixed caption of listing 2018-01-14 11:56:35 +01:00
Filip Hrisafov
3df399f693 #1314 Fix some typos 2017-10-23 20:02:09 +02:00
Kevin Grüneberg
a0b60a6bf4 #1314 Injection Strategy docs 2017-10-23 19:59:03 +02:00
Filip Hrisafov
a3e7b0a20a #610 remove unmapped source policy processor option 2017-10-22 23:20:03 +02:00
spoerri
92fe1093e4 #610 Add support for unmappedSourcePolicy 2017-10-22 21:06:17 +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
Thomas Eckl
47697a2391 Fix a few errors in reference guide and readme 2017-09-03 18:42:01 +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
Filip Hrisafov
5cead7ae5e #1269 use update methods for different sources for nested targets 2017-08-27 18:59:17 +02:00
Darren Rambaud
d0bd0a2fdf Fixed a couple of typos (#1260)
* Fixed 2 typos in the documentation
2017-07-24 19:33:46 +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
Darren Rambaud
b2e3ff0727 Fixed a minor typo
On line 14, changed "repostory" to "repository"
2017-07-14 23:07:59 +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
Filip Hrisafov
324e1fadbe #1086 Mention the fact that prototype methods are not considered for automatic sub mapping methods 2017-06-29 23:04:05 +02:00
Filip Hrisafov
89d7463c93 #1219 Mention ability to turn of automatic sub-mapping generation in documentation 2017-06-27 20:33:45 +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
7cf77f4c26 #1154 Add SPI for excluding types/elements from automatic sub-mapping generation
Default implementation of SPI ignores types in the java/javax packages
2017-05-17 22:34:23 +02:00
Filip Hrisafov
aa6cda1177 Use anchors for the sections and add Filip to the authors 2017-05-06 15:15: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
Filip Hrisafov
880ae56652 #1109 Add import for @Qualifier in the documentation 2017-03-01 22:15:52 +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
Sjaak Derksen
582bbe4412 #1057 documentation for Controlling forged name based bean mapping from root level with @Mapping 2017-02-20 19:21:15 +01:00
Filip Hrisafov
51e5976a7f #1001 Update documentation for the new automapping 2017-02-20 19:19:42 +01:00
Andreas Gudian
ac03999170 #975 Allow calling BeforeMapping/AfterMapping methods directly on @Context params 2017-02-02 21:57:26 +01:00
sjaakd
1ee4731752 #1027 do not consider Inherit(Inverse)Configuration in used mappers 2017-01-08 20:18:27 +01:00
Filip Hrisafov
6b07dda829 #962 Add support for mapping Java 8 Streams 2017-01-06 09:49:16 +01:00