1273 Commits

Author SHA1 Message Date
Filip Hrisafov
ee439d84c5 #782 Add javadoc to the new spi elements 2018-04-04 19:26:22 +02:00
Filip Hrisafov
06a49090cc #782 Nested target properties should work for builders as well 2018-04-04 19:26:22 +02:00
Filip Hrisafov
c3f0099698 #782 Do not use JDT for the Lombok integration tests
Lombok uses internals of the Java and Eclipse compilers.
In order for it to work with the Eclipse compiler, we need to add some extra jar.
Therefore, we are only testing Lombok with the Java compiler
2018-04-04 19:26:22 +02:00
Filip Hrisafov
22c337a947 #782 Add custom SPI implementations for Immutables in the integration tests 2018-04-04 19:26:22 +02:00
Filip Hrisafov
252af70bae Add new processor suite that ignores the maven procesor plugin
The maven-processor-plugin does not take classpath dependencies during the processing
2018-04-04 19:26:22 +02:00
Filip Hrisafov
45abe9e35b #782 Add BuilderInfo to SPI
The implementors of the SPI should return all the required information
2018-04-04 19:26:22 +02:00
Filip Hrisafov
d99a4cc217 #782 Add support for mapping immutable classes with builders 2018-04-04 19:26:22 +02:00
Filip Hrisafov
70419f91b0 #782 The builder type from lombok is not present during the annotation processing phase 2018-04-04 19:26:22 +02:00
Filip Hrisafov
dbc7c8a84d #782 Add integration tests for builders with FreeBuilder 2018-04-04 19:26:22 +02:00
Filip Hrisafov
45ab6e1c52 #782 Add integration tests for builders with AutoValue 2018-04-04 19:26:22 +02:00
Filip Hrisafov
bf8f037a19 #782 Add integration tests for builders with immutables 2018-04-04 19:26:22 +02:00
Eric Martineau
3d45d072e7 #782 Add tests for builders 2018-04-04 19:26:22 +02:00
Filip Hrisafov
4693a2581c MethodReference should not extend MappingMethod 2018-04-04 19:26:22 +02:00
Filip Hrisafov
2ead42da25
#1378 Use Types instead of searching for type elements 2018-03-18 20:36:00 +01: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
Filip Hrisafov
49efb4fd6c
#1395 Unused mappers should not be used in constructor injection 2018-03-14 21:29:18 +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
Filip Hrisafov
d5bb33f51d
#1375 Allow using target references when there is no intermediary read accessor 2018-02-11 12:48:40 +01:00
sjaakd
24ca295448 #1345 adapting fault message empty constructor to parameterless 2018-01-30 23:16:29 +01:00
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