Henning Pöttker
e32fc8c283
#2351 NullValueMappingStrategy for Maps and Iterables
...
With two new parameters for Mapper and MapperConfig, it is now possible to override the nullValueMappingStrategy specifically for MapMapping and IterableMapping.
2021-10-30 13:36:26 +02:00
Zegveld
5df6b7a75b
#131 , #2438 , #366 Add support for Type-Refinement (Downcast) Mapping ( #2512 )
...
Add new `@SubclassMapping` for creating Downcast mapping.
When a parent mapping method is annotated with `@SubclassMapping`
it will now generate an instanceof check inside the parent mapping
and generate the subclass mappings if they are not manually defined.
There is also `SubclassExhaustiveStrategy` for controlling what MapStruct should do in case the target type is abstract and there is no suitable way to create it.
2021-10-19 20:44:25 +02:00
valery1707
f167e7a20c
Fix typo in JavaDoc
2021-10-16 21:01:20 +02:00
Tobias Meggendorfer
9ed4e389f8
#2560 Ignore source properties if ignoreByDefault = true
2021-08-30 21:36:55 +02:00
Filip Hrisafov
43dfd92e05
[maven-release-plugin] prepare for next development iteration
2021-07-18 15:15:44 +02:00
Filip Hrisafov
a91b93f357
[maven-release-plugin] prepare release 1.5.0.Beta1
2021-07-18 15:15:44 +02:00
Andrew
1bf698785c
Fix typo in Named.java ( #2500 )
2021-06-24 19:19:02 +02:00
Filip Hrisafov
55c62ab43f
#2108 Make sure Javadoc can be generated with Java 11
...
Remove the org.jboss.apiviz.APIviz doclet since it is no longer compatible with Java 11.
Add new group in the Javadoc for the MapStruct Processor SPI
Fix Javadoc warnings
2021-06-19 11:50:48 +02:00
Lukas Lazar
cc1562c5ad
#2132 Add unmappedTargetPolicy to @BeanMapping
2021-05-15 18:01:22 +02:00
João Paulo Bassinello
fdf3dcc8ef
#2445 Support for case changing enum transformation strategy
...
Available case transformations: upper, lower, capital
2021-05-15 13:04:15 +02:00
Filip Hrisafov
627be53088
Migrate mapstruct core tests to JUnit Jupiter
2021-04-25 13:05:26 +02:00
Filip Hrisafov
51cdbd67e3
#2051 , #2084 Add new @Condition
annotation for custom presence check methods
2021-04-25 12:09:23 +02:00
jude.niroshan11@gmail.com
c4135e68ed
#2339 Support throwing an exception as an Enum Mapping option
2021-03-15 00:32:01 +01:00
Jeroen van Wilgenburg
d5703d3ee8
#2368 fix order of target parameter in documentation
2021-03-01 20:58:13 +01:00
Filip Hrisafov
630a8da904
Fix a typo in the Mapper#componentModel
2021-02-06 16:44:07 +01:00
Tomas Poledny
4223e3ab81
#2255 Add constants for componentModel
2021-01-17 15:13:42 +01:00
Filip Hrisafov
58dbaee472
[maven-release-plugin] prepare for next development iteration
2020-10-11 09:35:30 +02:00
Filip Hrisafov
d8f22f8311
[maven-release-plugin] prepare release 1.4.1.Final
2020-10-11 09:35:30 +02:00
Filip Hrisafov
eb5b8bb71e
[maven-release-plugin] prepare for next development iteration
2020-09-26 10:20:47 +02:00
Filip Hrisafov
9973b92ccb
[maven-release-plugin] prepare release 1.4.0.Final
2020-09-26 10:20:45 +02:00
Filip Hrisafov
8b22654abd
[maven-release-plugin] prepare for next development iteration
2020-08-30 16:31:45 +02:00
Filip Hrisafov
c962962546
[maven-release-plugin] prepare release 1.4.0.CR1
2020-08-30 16:31:44 +02:00
Filip Hrisafov
7dcbef349d
#2169 Add support for defining a custom unexpected value mapping exception
...
Expose definition via:
* `@EnumMapping`
* `@Mapper`
* `@MapperConfig`
* `EnumMappingStrategy` SPI
Rename `EnumNamingStrategy` to `EnumMappingStrategy`
2020-08-29 13:53:30 +02:00
Filip Hrisafov
609824037b
#2167 Add missing @since 1.4 to new interfaces, classes and methods
2020-08-01 11:43:46 +02:00
Filip Hrisafov
ef4bfc9aad
[maven-release-plugin] prepare for next development iteration
2020-07-19 18:10:13 +02:00
Filip Hrisafov
1d223284c2
[maven-release-plugin] prepare release 1.4.0.Beta3
2020-07-19 18:10:12 +02:00
Filip Hrisafov
2fede3583d
[maven-release-plugin] prepare for next development iteration
2020-07-18 01:12:05 +02:00
Filip Hrisafov
fc4f65ddb6
[maven-release-plugin] prepare release 1.4.0.Beta2
2020-07-05 23:11:41 +02:00
Filip Hrisafov
d87d75a7a8
[maven-release-plugin] prepare for next development iteration
2020-06-01 13:42:32 +02:00
Filip Hrisafov
72ce5f3bd2
[maven-release-plugin] prepare release 1.4.0.Beta1
2020-06-01 13:42:32 +02:00
Filip Hrisafov
7b5a54971f
Add EnumTransformationStrategy SPI ( #2089 )
...
Add a new custom EnumTransformationStrategy SPI which can be used for providing custom way of name based mapping for enums.
Add 4 out of the box transformation strategies:
* prefix - add a prefix to the name based enum mapping
* stripPrefix - remove a prefix from the name based enum mapping
* suffix - add a suffix to the name based enum mapping
* stripSuffix - remove a suffix from the name based enum mapping
This can be achieved by using the new `EnumMapping`
e.g.
Add suffix `_TYPE` to all enums:
`@EnumMapping(nameTransformationStrategy = "suffix", configuration = "_TYPE")`
With this it would be possible to achieve what is needed in #796 , #1220 , #1789 .
2020-05-18 07:17:30 +02:00
Sjaak Derksen
58da2d293f
#695 user control over mapping means (direct, method, conversion, 2step)
2020-02-02 10:05:26 +01:00
Sjaak Derksen
c153c8bf5a
#1983 javadoc and doc on @ignore in @InheritInverseConfituration ( #1986 )
2019-12-23 20:41:38 +01:00
Sjaak Derksen
ee794d042c
#807 meta annotations and duck typing ( #1979 )
2019-12-07 22:20:11 +01:00
Sjaak Derksen
507ec1b384
#1557 & #1936 String-to-enum and enum-to-String ( #1938 )
...
* #1557 making enum-to-string and string-to-enum
* #1936 <ANY_REMAINING> and <ANY_UNMAPPED> not ignored when inverting
2019-10-07 20:30:20 +02:00
Andrei Arlou
61f941aa80
#166 Add code-examples to Javadoc of org.mapstruct.* annotations ( #1876 )
2019-09-22 21:25:57 +03:00
dekelpilli
f84f6501c8
#1851 Do not allow using qualifiedBy and qualifiedByName with expression in Mapping
2019-09-22 13:53:19 +02:00
Andrei Arlou
447bb00f89
#1773 Update documentation: componentModel=jsr330 with @DecoratedWith not longer experimental ( #1907 )
2019-09-18 07:18:05 +03:00
Sjaak Derksen
33710584d3
#1742 & #1661 refactoring and making builder optional ( #1811 )
2019-05-24 23:30:16 +02:00
Thibault Duperron
60208b67af
#1435 add import to MapperConfig
2019-02-14 22:24:42 +01:00
Filip Hrisafov
a28f2cb9cf
[maven-release-plugin] prepare for next development iteration
2019-02-10 11:48:20 +01:00
Filip Hrisafov
984423dfee
[maven-release-plugin] prepare release 1.3.0.Final
2019-02-10 11:48:19 +01:00
Sjaak Derksen
0981959ff0
#1699 add sensible defaults to NullValuePropertyMapping.SET_TO_DEFAULT ( #1702 )
2019-01-28 22:47:37 +01:00
Sjaak Derksen
57caee250f
#1685 completing nullvaluepropertymappingstrategy ( #1697 )
2019-01-27 21:09:44 +01:00
Christian Bandowski
0e33ad4bbc
#1657 Add Mappers.getMapperClass for getting the class of a Mapper
2018-12-22 15:19:39 +01:00
Filip Hrisafov
9a43b210d3
Add since tag to new API elements
2018-11-24 02:07:31 +01:00
Filip Hrisafov
ced7f3b024
[maven-release-plugin] prepare for next development iteration
2018-11-11 09:19:06 +01:00
Filip Hrisafov
3f2c1cee55
[maven-release-plugin] prepare release 1.3.0.Beta2
2018-11-11 09:19:05 +01:00
Sjaak Derksen
e69647f756
#5 controlling lossy conversions (also solving #1504 partially and #1458 )
2018-11-02 07:56:51 +00:00
Sjaak Derksen
288813fc3c
#1306 Add new NullValuePropertyMappingStrategy which leaves @MappingTarget untouched ( #1618 )
2018-10-25 22:14:26 +01:00