169 Commits

Author SHA1 Message Date
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
Thomas Eckl
47697a2391 Fix a few errors in reference guide and readme 2017-09-03 18:42:01 +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
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
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
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
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
Filip Hrisafov
a2bd4a021f #965 fix wrong reference to NullValueMappingStrategy 2016-12-28 09:43:39 +01:00
Filip Hrisafov
f94990270f fix a typo in the documentation 2016-12-06 22:37:30 +01:00
Filip Hrisafov
0ec9729801 #557 Add documentation about using fields as read/write accessors 2016-12-04 23:39:51 +01:00
Pascal
075e763556 #469 Consider return values of BeforeMapping/AfterMapping methods
This allows to handle cycles in object graphs, as demonstrated in the
test case CallbacksWithReturnValuesTest
2016-12-04 16:15:19 +01:00
Remo
35b8972d76 #824 Target Bean Factory
Introduced @ObjectFactory annotation to distinguish between factory and
mapping methods. Until now this was decided based on the lack of
parameters. @ObjectFactory gives a factory access to source object by
defining them as parameters.
2016-12-01 10:38:37 +01:00
Maxim Kolesnikov
9a537753c2 Fix a few documentation errors. 2016-11-29 21:08:54 +01:00
Gunnar Morling
52f48fe1da #949 Adding example of Ant usage to reference guide 2016-11-05 16:03:41 +01:00
Gunnar Morling
a928ff56d7 #945 Adding clarification that Java 8 is needed for default methods 2016-11-01 19:08:06 +01:00
Dominik Gruntz
fff7457286 #945 Updates mapstruct-reference-guide: Revives caption
Caption to example 17 got lost (due to a missing line). Adds the missing line in front of
        .Conversion from BigDecimal to String
    so that this caption is printed as caption again.
2016-11-01 19:04:05 +01:00
Dominik Gruntz
422821f3cf #945 changes s.getLongProp() to s.getLongProperty()
In the mapping no source name is specified for this property, so the
        name longProperty is used
2016-11-01 19:04:03 +01:00
Dominik Gruntz
81b4535aad #945 fixes typo 2016-11-01 19:03:40 +01:00
Dominik Gruntz
5de2750740 #945 Documentation: Converts an item to a caption
In section 6 the caption is written as
           . Generated collection mapping methods
        and does therefore appear as an enumeration instead of a caption.
2016-11-01 19:03:37 +01:00
Dominik Gruntz
65ffa8891a #945 Extension of chapter 3.2
This commit extends the description of section 3.2 with the possibility
to declare custom mapping methods as default methods in the interface
directly.
2016-11-01 19:02:31 +01:00
Gunnar Morling
ba28a64986 Minor doc update 2016-10-29 09:17:08 +02:00
Maxim Kolesnikov
b2e7cb3e16 Fix a few documentation errors. 2016-10-29 09:09:50 +02:00
Gunnar Morling
8d5c25ebc2 #900 Adding note on JDK 9 to documentation 2016-10-28 22:29:06 +02:00
sjaakd
4297c0cd72 #689 Documentation for Joda types to XmlGregorianCalendar 2016-10-25 21:48:08 +02:00
Gunnar Morling
a09e8c119a #852 Updating documentation 2016-10-23 21:00:58 +02:00
Filip Hrisafov
fb286e3d39 #858 Update documentation with java.sql.* implicit type conversions 2016-09-29 19:13:13 +02:00
Pavel Makhov
c2fc030217 Update mapstruct-reference-guide.asciidoc
Fix few typos
2016-09-13 16:27:04 -04:00