Orange Add
bb099a55ee
#3040 : Allow using only BeanMapping#mappingControl
2022-11-03 22:02:58 +01:00
Filip Hrisafov
3a325ea66b
#3036 Fix compile errors when intersection types are used in lifecycle methods
2022-10-03 21:12:19 +02:00
Filip Hrisafov
266c5fa41c
#1216 Pick candidate method with most specific return type
...
When there are multiple candidate methods returning different types.
We should be able to use the method with the most specific return type (if such a method exists)
2022-10-02 19:20:13 +02:00
Zegveld
411cc24dac
#2955 Fix @AfterMapping
with return type not called for update mappings
2022-10-02 09:34:03 +02:00
José Carlos Campanero Ortiz
90a487ac06
#1427 Add support for custom name in Spring stereotype annotations
2022-10-01 13:47:49 +02:00
Filip Hrisafov
af1eab0ece
#2743 BeanMappingOptions should not be inherited for forged methods
2022-09-29 22:10:27 +02:00
Zegveld
608d476ed2
#3018 : Use MappingControl with SubclassMapping
2022-09-29 21:35:51 +02:00
Orange Add
e979f506fa
#2773 Copy @Deprecated
annotation from method or mapper to implementation
2022-09-28 22:17:59 +02:00
Filip Hrisafov
73e8fd6152
#2840 , #2913 , #2921 : MethodMatcher should not match widening methods
...
In the MethodMatcher we need to do a special check when the target type is primitive.
The reason for that is that a Long is assignable to a primitive double.
However, doing that means that information can be lost and thus we should not pick such methods.
When the target type is primitive, then a method will be matched if and only if boxed equivalent of the target type is assignable to the boxed equivalent of the candidate return type
2022-09-27 09:35:54 +02:00
Johnny Lim
811cd569bb
Javadoc and documentation polishing ( #3026 )
2022-09-26 19:02:01 +02:00
Prasanth Omanakuttan
d593afed69
Avoid unnecessary unboxing of Boolean ( #3003 )
2022-09-12 18:45:22 +02:00
José Carlos Campanero Ortiz
97c6755288
#2963 Add support for enum to integer conversion
2022-09-04 13:58:10 +02:00
Iaroslav Bogdanchikov
bbf63ae177
#2730 Add support for Jakarta XML Binding
2022-09-02 22:04:01 +02:00
Filip Hrisafov
21069e5a2e
#2895 Generate more readable annotations
2022-09-02 17:24:37 +02:00
Prasanth Omanakuttan
68571de01b
Update Typos in java-doc
...
Closes #2989
2022-08-29 21:32:00 +02:00
Orange Add
3cc2aa7675
#2825 Fix SubclassMapping stackoverflow exception
2022-08-28 12:41:25 +02:00
Orange Add
ac356cab25
#2983 Add @AnnotateWith
support to non bean mapping methods
2022-08-28 12:33:46 +02:00
Filip Hrisafov
4fa66229d9
#2990 Stabilise top level imports
2022-08-26 19:35:54 +02:00
Filip Hrisafov
853e7b27df
#2925 Fix IllegalArgumentException when resolving generic parameters
...
When resolving the parameter for a method like:
```
<T> Optional<T> from(T value)
```
There was an exception in javac because getting a DeclaredType from an Optional
with a primitive type argument throws an exception.
Therefore, when assigning the type arguments we get the boxed equivalent.
This problem does not happen in the Eclipse compiler
2022-08-24 19:39:09 +02:00
Filip Hrisafov
42500ca755
#2907 Add test case for nested import of array
2022-08-24 19:38:40 +02:00
Filip Hrisafov
71b1a7b8a2
#2945 Stabilise top level imports
...
Make sure that GeneratedType always gets the imported types
from a Type before adding them
2022-08-24 19:38:40 +02:00
Filip Hrisafov
b24e831cf0
#2937 Fix conditional check for collections with adders
2022-08-24 19:11:52 +02:00
Filip Hrisafov
237543c47c
#2897 Always import types defined in Mapper#imports
2022-08-24 18:59:31 +02:00
Filip Hrisafov
874bf1fd2c
#2950 Add support for Jakarta CDI
2022-08-24 18:38:44 +02:00
Filip Hrisafov
ef4c26b075
#2949 Do not inverse inherit BeanMapping#ignoreUnmappedSourceProperties
2022-08-24 18:36:43 +02:00
Hakan
54321d6e66
#2839 Keep thrown types when creating a new ForgedMethod with the same arguments
...
This fixes a compilation error when mapping fields with the same type due to not wrapping in a `try-catch` block
2022-08-20 15:23:32 +02:00
Prasanth Omanakuttan
46900cabde
Update Typos in javadoc ( #2958 )
2022-08-20 13:37:43 +02:00
Zegveld
17997ef617
#2901 : Fix @TargetType
annotation on a @Condition
annotated method for a Collection value
2022-08-20 13:01:47 +02:00
Zegveld
849085e026
#1574 : Support for annotating the generated code with custom annotations
...
Add new `@AnnotateWith` annotation.
This annotation can be used to instruct the MapStruct processor
to generate custom annotations in the generated code.
2022-08-20 12:59:38 +02:00
Nikola Ivačič
8fa286fe4c
#2688 : Support accessing to the target property name
2022-08-01 19:17:33 +02:00
Filip Hrisafov
de8c0c7070
Use UTF-8 when compiling the tests
...
The test infrastructure that we are using should use UTF-8 for generating the StandardJavaFileManager
2022-06-29 08:37:50 +02:00
Ben Zegveld
88745d151e
#2882 : target type is now correctly passed on through the MethodReferencePresenceCheck to the MethodReference.
2022-06-18 23:32:26 +02:00
Filip Hrisafov
1459aabfc3
[maven-release-plugin] prepare for next development iteration
2022-06-18 19:01:18 +02:00
Filip Hrisafov
19973ff818
[maven-release-plugin] prepare release 1.5.2.Final
2022-06-18 19:01:16 +02:00
Sergei Portnov
406ae3fc13
#2891 Fix subclass mapping while superclass has non-empty constructor
...
Co-authored-by: Filip Hrisafov <filip.hrisafov@gmail.com>
2022-06-18 18:47:07 +02:00
Filip Hrisafov
98eb46aee9
#2880 Fix missing import for array mapping methods
...
Co-authored-by: Martin Kamp Jensen <martin.kamp.jensen@se.com>
2022-06-18 13:59:03 +02:00
Filip Hrisafov
fa800926e7
#2837 Add support for text blocks in expressions
2022-06-18 12:32:05 +02:00
Filip Hrisafov
22ad9f636d
#2806 Try to stabilise some date conversion tests by locking them on reading the default timezone
2022-06-14 22:03:32 +02:00
Filip Hrisafov
20e97714d4
[maven-release-plugin] prepare for next development iteration
2022-06-05 08:42:56 +02:00
Filip Hrisafov
ec9288ce66
[maven-release-plugin] prepare release 1.5.1.Final
2022-06-05 08:42:55 +02:00
Filip Hrisafov
46b78bfe59
#2867 Fix NPE when reporting message on parent mappers
2022-06-05 08:35:31 +02:00
Filip Hrisafov
5efe5e291c
[maven-release-plugin] prepare for next development iteration
2022-06-02 23:11:41 +02:00
Filip Hrisafov
efa11ba312
[maven-release-plugin] prepare release 1.5.0.Final
2022-06-02 23:11:41 +02:00
Filip Hrisafov
a1a0786cf2
#2846 Add test case showing that everything works as expected
2022-06-02 22:14:42 +02:00
Zegveld
437a70d6df
#2807 : Include LifeCycleMethod importTypes in the list of importTypes. ( #2808 )
...
Co-authored-by: Ben Zegveld <Ben.Zegveld@gmail.com>
2022-04-08 20:57:40 +02:00
Filip Hrisafov
6604617730
#2794 Compile error when condition expression used with constant or expression
2022-04-03 15:20:00 +02:00
Zegveld
03d44b5a87
#2795 : use 'includeModel' for the 'sourcePresenceCheckerReference' in the 'UpdateWrapper'. ( #2796 )
...
* #2795 : use 'includeModel' for the 'sourcePresenceCheckerReference' in the 'UpdateWrapper'.
* Simplify the tests
Co-authored-by: Ben Zegveld <Ben.Zegveld@gmail.com>
Co-authored-by: Filip Hrisafov <filip.hrisafov@gmail.com>
2022-04-02 18:55:06 +02:00
Zegveld
2473c3eaaa
#2797 : Add the nested type import types in the NestedPropertyMappingMethod
...
* #2797 : Reproduction scenario
* Add the nested type import types in the NestedPropertyMappingMethod
Co-authored-by: Ben Zegveld <Ben.Zegveld@gmail.com>
Co-authored-by: Filip Hrisafov <filip.hrisafov@gmail.com>
2022-04-02 11:59:25 +02:00
Filip Hrisafov
08a0313840
[maven-release-plugin] prepare for next development iteration
2022-03-21 08:14:09 +01:00
Filip Hrisafov
7e00af6ff4
[maven-release-plugin] prepare release 1.5.0.RC1
2022-03-21 08:14:08 +01:00