Andreas Gudian
2c2f69b0d3
#626 Remove doubled blank lines on Windows
2015-08-17 22:10:44 +02:00
Christophe Labouisse
29f720b35e
#472 , #556 Make implementation package and name configurable
...
- Add `implementationName` & `implementationPackage` to `@Mapper` and
`@MapperConfig'
- Generate a file in `META-INF/services` when a custom name or package
has been configured
- `Mappers` use `ServiceLoader` first in order to get a mapper's
implementation before falling back to the former method
- Change the `MapperServiceProcess` behaviour to return `default` rather
than `null` when no component model is defined
2015-08-14 21:03:33 +02:00
Andreas Gudian
9578f9b452
#588 Extend test to verify that #588 was actually fixed with the previous commit
2015-08-13 20:47:11 +02:00
Andreas Gudian
a85168f298
#618 Improve detection of unspecified annotation attributes and remove all "DEFAULT"/"default" values from annotations and enums that were previously only created to detect if a value was assigned or not.
2015-08-13 20:38:43 +02:00
luxmeter
964f676af6
#600 added defaultValue feature
2015-08-12 23:58:56 +02:00
Andreas Gudian
e177f25d63
#604 Add import for property target type when using an update-method and no factory method is used to create a new instance
2015-08-09 12:36:48 +02:00
Andreas Gudian
30c8b1eec0
#590 Change test to not depend on un-supported String<->StringBuilder conversion
2015-08-09 12:23:36 +02:00
Andreas Gudian
5217e67f8d
#590 Update methods are not supported for "method-and-conversion" methods (can currently cause NullPointerExceptions)
2015-08-09 12:23:36 +02:00
Andreas Gudian
1d1b215a93
#596 Add null-check on source for update-method invocations and set target property to null, if source is null
2015-08-09 12:10:10 +02:00
Andreas Gudian
abecb0d888
#580 Add null-check for mapped -> type-converted property mapping.
...
At least our built-in mapping methods return null for null input, which would break the type-conversion.
2015-08-09 12:10:10 +02:00
VGT
64dd46c354
#581 Prevent multiple imports of similar simple class name from different packages.
2015-07-02 22:44:42 +02:00
Andreas Gudian
2d686003c8
#576 Fix assignability check for @MappingTarget parameters in BeforeMapping/AfterMapping methods
2015-06-28 11:44:39 +02:00
Andreas Gudian
264a8f65af
#574 determine property type from getter/setter methods only in combination with ExecutableType (i.e. using asMemberOf to determine the type with any generics being resolved)
2015-06-28 11:29:45 +02:00
VGT
b4bce14d6a
#577 Improve type parameters equality check.
2015-06-26 20:43:20 +02:00
sjaakd
174c53cb48
#487 iterable and map update method selection
2015-05-29 23:26:56 +02:00
Andreas Gudian
1baf8edc0a
#548 Move all packages except of "spi" under "org.mapstruct.ap.internal"
2015-05-29 20:08:57 +02:00
Andreas Gudian
619f8023d5
#14 Allow EnumMappings to be extended with @BeforeMapping/@AfterMapping methods
2015-05-28 18:20:45 +02:00
Andreas Gudian
68fc3af645
#14 Consider qualifiers when selecting @BeforeMapping/@AfterMapping methods
2015-05-28 18:20:31 +02:00
Andreas Gudian
ac8320b0a3
#14 Add support for @AfterMapping / @BeforeMapping methods, adapt MethodMatcher to allow multiple source arguments again
2015-05-28 18:15:04 +02:00
sjaakd
3be68b233e
#512 more descriptive error message for forged collection and map mappings
2015-05-26 23:50:58 +02:00
sjaakd
b4c514d479
#513 , forged method should re-throw exceptions of used mapping methods
2015-05-18 15:14:01 +02:00
Andreas Gudian
4a2f0c01ec
#544 run some checkstyle rules on sources generated by our tests
2015-05-17 23:16:14 +02:00
sjaakd
124c2a4001
#515 , introduction of string definition handling in IndentationCorrectingWriter
2015-05-12 23:16:45 +02:00
sjaakd
2ece25a086
#527 selection and forging of iterable - and map mapping methods with wildcards, extends for source, super for target
2015-05-08 22:21:23 +02:00
Andreas Gudian
edac1b17cc
#538 Add missing imports for a collection/map implementation and the parameter types
2015-05-04 15:13:18 +02:00
Andreas Gudian
8816b380c3
#534 fix array initializer for NullValueMappingStrategy.RETURN_DEFAULT
2015-04-10 11:22:46 +02:00
sjaakd
229537284a
#320 fixing JodaTime unit test
2015-04-06 14:44:34 +02:00
sjaakd
bacf835c0d
#516 Add NP check on adder property mapping including reproducer
2015-04-04 11:43:51 +02:00
Andreas Gudian
a431581da8
#523 fix type of assignment in GetterWrapperForCollectionsAndMaps
2015-03-30 20:50:38 +02:00
Andreas Gudian
bcb722e2e9
#291 add test to verify that the simple case (target type with type arguments) already works, clean-up unnecessary "raw" definitions in templates
2015-03-28 10:48:27 +01:00
Andreas Gudian
fb6c4dbfbd
#517 make order of target properties in generated code and in messages stable
2015-03-26 20:39:45 +01:00
sjaakd
c69a56c138
#160 Using update method, basic behavior. Single mapping methods on non collection / array properties.
2015-03-04 22:58:42 +01:00
Gunnar Morling
bcf28c1cc1
#470 Adding import in case decorator is in another package than mapper interface
2015-03-04 14:22:19 +01:00
Gunnar Morling
b02d206de6
#304 Addressing review remarks
2015-03-04 00:34:08 +01:00
Gunnar Morling
21b89ea5e2
#304 Detecting unknown properties given via dependsOn()
2015-03-04 00:33:35 +01:00
Gunnar Morling
a332533dda
#304 Raising an error in case a cycle is specified via dependsOn()
2015-03-04 00:33:35 +01:00
Gunnar Morling
2d7ab089ff
#304 Allowing to configure dependencies between properties via @Mapping#dependsOn()
2015-03-04 00:32:33 +01:00
sjaakd
a381396839
#289 adding extra null check before add/putAll of a target collection when having a getter only targetaccessor
2015-03-02 09:54:14 +01:00
sjaakd
1827d1125a
#474 remove @NullValueMapping in favour of @Bean/@Map/@IterableMapping
2015-02-26 20:15:19 +01:00
Gunnar Morling
bbeaa2117c
#168 Formatting
2015-02-24 23:46:18 +01:00
Andreas Gudian
952ee8526d
#168 Allow to inherit mapping method configurations from the @MapperConfig-annotated type, either automatically when all method types match, or explicitly using @InheritConfiguration.
2015-02-24 14:24:24 +01:00
Gunnar Morling
a7d56e5122
#465 Adding import for Locale to Joda generated mappers if required
2015-02-21 18:55:29 +01:00
sjaakd
fe10248416
#459 error message parameter forgotten
2015-02-19 22:25:45 +01:00
sjaakd
83ace655e1
#449 Handle XmlGregoriancalendar from String with empty date format as xml datatype
2015-02-06 22:52:33 +01:00
sjaakd
55a50448be
#141 removal of ListOfJaxbElemToListOfValue builtin method
2015-02-06 20:33:42 +01:00
sjaakd
4e10c8451c
#194 Only generate field / imports for a referenced mapper if it is actually used
2015-02-06 20:18:14 +01:00
sjaakd
b83c430758
#339 Uppercase for ENUM in messages, moving Diagnostic.Kind to Message
2015-02-04 21:46:10 +01:00
sjaakd
d61ca26652
#339 introduce centralized enum for messages
2015-02-03 00:11:45 +01:00
Gunnar Morling
31d2151b7b
#412 Adding test for inner class of inner class
2015-02-01 17:33:41 +01:00
Ewald Volkert
2ebfd04fe9
#209 , #412 Adding support for mapping static inner classes and enums by adding import declarations for static inner types also if declared in the same package
2015-02-01 17:33:38 +01:00