1042 Commits

Author SHA1 Message Date
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
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
Richard Lea
49e39e0ed5 #1332 Fix exceptions declaration missing in generated nested private methods 2017-11-23 23:41:42 +01: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
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
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
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
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
779c16cc2a #1283 Handle no suitable empty constructor during BeanMappingMethod creation 2017-09-07 17:44:53 +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
sjaakd
4d8bc29347 #1255 Extension of autoInheritanceStrategy, removing of name based ignore reverse mapping 2017-08-23 22:54:10 +02:00
Filip Hrisafov
17da0cf912 #1231 Add japicmp for the MapStruct API 2017-08-17 00:10:04 +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
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
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
Gunnar Morling
aae1527352 #883 Simplifying look-up of test locale 2017-07-07 17:52:20 +02:00
Alexandr Shalugin
614f0ea4ee #883 generated variable names with ı instead i 2017-07-07 17:52:20 +02:00
Gunnar Morling
dfbe8767a5 #543 Adding assertion to test that the bound type is added to the import statements 2017-07-06 17:08:58 +02:00
Filip Hrisafov
82da71199d #543 Make sure that the bound type is imported if the type is wildcard 2017-07-02 20:25:35 +02:00
Filip Hrisafov
dc031bf916 #1185 display the specific type for a property for which no write accessor exists or it is unknown 2017-06-29 23:15:48 +02:00
Filip Hrisafov
7a9464c525 #1150 Improve error reporting for nested properties 2017-06-29 20:25:42 +02:00
Cornelius
b5b0c04313 #1170 Fix wildcards in collection adder mappings 2017-06-29 00:01:49 +02:00
Filip Hrisafov
e6d5831aa7 #1227 Make sure that only types belonging to java.lang are not imported 2017-06-27 20:30:50 +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
2acaffa3ec #1129 Add forbidden apis plugin to fail on illegal TypeMirror usages 2017-05-30 22:56:31 +02:00
Filip Hrisafov
9fc111f7df #1129 Do not use equals and hashCode from TypeMirror 2017-05-30 22:33:18 +02:00