1302 Commits

Author SHA1 Message Date
sjaakd
5707f35c85 #1345 cleanup non required isReverse in printing messages 2018-01-30 23:16:29 +01:00
sjaakd
4c1dcc5272 #1345 ignoring reversed mappings with no target accessor silently 2018-01-30 23:16:29 +01:00
Daniel Strobusch
3d26318301 Fixed caption of listing 2018-01-14 11:56:35 +01:00
Filip Hrisafov
6dee8fbe66
Add Jeff to copyright.txt 2017-12-29 22:33:29 +01:00
Jeff Smyth
f31d234ba0 #1353 Add a trim for source and target mappings, but log a warning message if trimmed. 2017-12-29 22:18:20 +01:00
Filip Hrisafov
3f8b1e46d4
#1320 Properly create additional options for unprocessed defined targets
Create mappings for each unprocessed defined target based on their name and the mapping
2017-11-26 22:23:02 +01:00
Filip Hrisafov
460e87eef6 #1340 Create correct overriden method for Value Mappings
* The Value / Enum Mappings should copy all the parameters from the method that is being overriden
* The source parameter should be the first source parameter
2017-11-24 00:48:19 +01:00
Filip Hrisafov
2190ae324b #1339 Primitive Context parameters should be skipped when looking for lifecycle methods 2017-11-24 00:44:33 +01:00
Filip Hrisafov
1af702e44b Polish after PR merge
* Extract common TypeMirror extraction into a separate method
* Remove not needed code from tests
2017-11-23 23:51:18 +01:00
Filip Hrisafov
faabbf7ec0 Add Richard and Joshua to copyright.txt 2017-11-23 23:45:08 +01:00
Richard Lea
49e39e0ed5 #1332 Fix exceptions declaration missing in generated nested private methods 2017-11-23 23:41:42 +01:00
Filip Hrisafov
e4839fce5d #1333 Add since tags for unmappedSourcePolicy() 2017-11-18 09:34:25 +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
Kevin Grüneberg
946b8c8631 #1312 Change MapStruct Version in README to latest 1.2.0.Final 2017-10-20 23:28:41 +02:00
Filip Hrisafov
8143aa81e2 #571 Add test for default injection strategy 2017-10-20 22:56:48 +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
Kevin Grüneberg
e2391df04f #1297 Add IntelliJ Formatter to CONTRIBUTING.md 2017-10-20 21:26:38 +02:00
Filip Hrisafov
bfa2509439 Update latest stable badge with 1.2.0.Final 2017-10-18 00:06:29 +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 1.2.0.Final 2017-10-17 23:12:52 +02:00
Filip Hrisafov
0e8c22c95f Add Darren to copyright.txt 2017-10-17 22:14:35 +02:00
Filip Hrisafov
aef1e3b14b #1304 Add thrown exceptions to the generated nested mapping methods 2017-10-17 21:10:59 +02:00
Filip Hrisafov
22e17f9c4b #744 Improve support for Java 9
When compilig with Java 9 and and source version 1.8 Elements#getTypeElement(CharSequence) returns the types from all modules (such as java.xml.bind or java.xml.datatype).
However if the required modules are not added the classes cannot be used. Therefore, apart from using the Elements we are also checking if the class is also there.

If source version 9 is used then Elements#getTypeElement(CharSequence) works correctly and does not return the types if the modules are not there
2017-10-17 20:57:05 +02:00
Filip Hrisafov
98bdc3612f Adding Kevin to copyright.txt 2017-09-17 23:22:59 +02:00
Kevin Grüneberg
499dbd4561 #1273 Fix for NullValueMappingStrategy#RETURN_DEFAULT when using collections
When mapping a collection using NullValueMappingStrategy#RETURN_DEFAULT and the source is null, the target will be an empty collection.
2017-09-17 23:03:24 +02:00
Filip Hrisafov
af8d48c797 #1281 Do not depend on deprecated sonatype parent 2017-09-07 17:47:18 +02:00
Filip Hrisafov
779c16cc2a #1283 Handle no suitable empty constructor during BeanMappingMethod creation 2017-09-07 17:44:53 +02:00
Thomas Eckl
47697a2391 Fix a few errors in reference guide and readme 2017-09-03 18:42:01 +02:00
Filip Hrisafov
079d14d12e Run build in VM (fixes issues when build is killed by Travis containers) 2017-09-03 16:30:19 +02:00
Filip Hrisafov
1be6d352bb Switch to OpenJDK 7 on Travis (Oracle Java 7 is no longer present) 2017-09-03 16:29:04 +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 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
sjaakd
4d8bc29347 #1255 Extension of autoInheritanceStrategy, removing of name based ignore reverse mapping 2017-08-23 22:54:10 +02:00
Filip Hrisafov
6377e51efa #1251 Deploy SNAPSHOTS from Travis CI 2017-08-18 19:41:24 +02:00
Filip Hrisafov
17da0cf912 #1231 Add japicmp for the MapStruct API 2017-08-17 00:10:04 +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
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 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
db3bb5eba0 #1247 Make sure that nested target mappings works correctly for multiple source parameters 2017-07-13 18:52:57 +02:00
Andreas Gudian
d9821a0cc8 #1242 Fix favoring of a single factory method with source params before others without source params.
From the Javadoc of @ObjectFactory: If there are two factory methods, both serving the same type, one with no parameters and one taking sources as input, then the one with the source parameters is favored. If there are multiple such factories, an ambiguity error is shown.
2017-07-11 23:03:44 +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
3ebd09eec9 #1244 Fix problems with special word for FreeMarker in some cases 2017-07-10 20:37:09 +02:00
Filip Hrisafov
acdab55604 #1196 Use dedicated property name for the jacoco argument line and have an empty property in order to work with Netbeans 2017-07-09 11:12:15 +02:00
Gunnar Morling
ca0721d931 #1224 Adding Automatic-Module-Name headers to mapstruct, mapstruct-jdk8 and mapstruct-processor JARs 2017-07-08 15:24:39 +02:00