thunderhook
728b42ac25
tried to support arrays as target - stopped because of null values in target array - intermediate method used for lists and then resultList.toArray(new Employee[0]);
would be nice - or somehow using a list in the forged method anyways:
...
```
public Employee[] mapListToArray(List<EmployeeDto> employees) {
if (employees == null) {
return null;
}
List<Employee> resultList = new ArrayList<>();
for ( EmployeeDto employeeDto : employees ) {
if ( countryIsNotNull( employeeDto ) ) {
resultList.add(map(employeeDto));
}
}
return resultList.toArray(new Employee[0]);
}
```
2024-09-22 23:12:33 +02:00
thunderhook
d9566bab76
highly WIP
2024-09-22 22:24:10 +02:00
thunderhook
30651b989b
highly WIP
2024-09-20 23:29:37 +02:00
GitHub Action
4e0d73db1d
Next version 1.7.0-SNAPSHOT
2024-09-16 08:06:43 +00:00
GitHub Action
212607b447
Releasing version 1.6.2
2024-09-16 07:55:31 +00:00
Filip Hrisafov
a3b4139070
#3717 Fix ClassCastException when getting thrown types for a record accessor
2024-09-16 09:52:57 +02:00
GitHub Action
c74e62a94c
Next version 1.7.0-SNAPSHOT
2024-09-15 16:01:43 +00:00
GitHub Action
10d69878a1
Releasing version 1.6.1
2024-09-15 15:52:17 +00:00
Filip Hrisafov
3011dd77d7
#3678 before / after mapping for type using builder should only be kept if they are using the actual type in @TargetType
or @MappingTarget
2024-09-15 16:45:21 +02:00
Filip Hrisafov
4c1df35ba6
#3703 Use include model instead of manually writing the type name for return type for afterMappingReferencesWithFinalizedReturnType
2024-09-15 16:45:08 +02:00
Filip Hrisafov
2686e852b6
#3661 Use correct type for the Record component read accessors
2024-09-14 01:17:45 +02:00
Filip Hrisafov
5232df2707
Try to stabilise MapMappingTest and CarMapperTest
2024-09-02 15:18:37 +02:00
Obolrom
4d9894ba25
#3113 Use LinkedHashSet, LinkedHashSet new factory methods for java >= 19
2024-09-02 10:26:48 +02:00
김기서
23f4802374
Fix method name typo ( #3691 )
2024-09-02 09:05:01 +02:00
Obolrom
1e89d7497b
Fix method name typo ( #3622 )
2024-09-02 08:44:17 +02:00
Filip Hrisafov
c89b616f8c
#3668 Do not apply implicit mappings when using SubclassExhaustiveStrategy#RUNTIME_EXCEPTION
and return type is abstract
2024-08-24 12:22:37 +02:00
Filip Hrisafov
6c8a2e184b
#3667 , #3673 MappingReference should custom MappingOption equality instead of the default only target name based one
2024-08-24 11:29:28 +02:00
Filip Hrisafov
60cd0a4420
#3670 Fix regression when using InheritInverseConfiguration
with nested target properties and reversing target = "."
2024-08-24 11:27:52 +02:00
Stefan Simon
b452d7f2c8
#3652 Inverse Inheritance should be possible for ignore-mappings without source
2024-08-18 17:46:35 +02:00
GitHub Action
96d0698417
Next version 1.7.0-SNAPSHOT
2024-08-12 21:08:07 +00:00
GitHub Action
38ec5c5335
Releasing version 1.6.0
2024-08-12 20:59:31 +00:00
GitHub Action
6365a606c1
Next version 1.6.0-SNAPSHOT
2024-07-20 15:45:11 +00:00
GitHub Action
6ef64ea3aa
Releasing version 1.6.0.RC1
2024-07-20 15:36:11 +00:00
Stefan Simon
3047760fd0
#3591 Fix duplicate method generation with recursive auto mapping
2024-07-20 16:19:59 +02:00
Obolrom
df49ce5ff9
#3609 Pass bean mapping ignored unmapped source properties to subclass forged methods
...
Co-authored-by: thunderhook <8238759+thunderhook@users.noreply.github.com>
2024-07-20 14:06:49 +02:00
Filip Hrisafov
66f4288842
#3601 Always use SourceParameterCondition when checking source parameter
...
This is a breaking change, with this change whenever a source parameter is used as a source for a target property the condition has to apply to source parameters and not properties
2024-07-20 13:53:39 +02:00
thunderhook
52877d36c2
#3634 fix typo in experimental note
2024-07-20 13:06:00 +02:00
hduelme
8fa2f40944
Enforce whitespaces around the for colon with CheckStyle ( #3642 )
2024-07-15 23:18:32 +02:00
Filip Hrisafov
69371708ee
#3574 Respect only explicit mappings but fail on unmapped source fields
...
* #3574 Respect only explicit mappings but fail on unmapped source fields
This reverts #2560 , because we've decided that `@BeanMapping(ignoreByDefault = true)` should only be applied to target properties and not to source properties.
Source properties are anyway ignored, the `BeanMapping#unmappedSourcePolicy` should be used to control what should happen with unmapped source policy
2024-07-06 10:31:32 +02:00
GitHub Action
8a679b325d
Next version 1.6.0-SNAPSHOT
2024-05-11 07:10:47 +00:00
GitHub Action
21a8b88a0f
Releasing version 1.6.0.Beta2
2024-05-11 07:01:58 +00:00
Filip Hrisafov
b33942a010
#3561 Add test case
2024-05-01 08:15:44 +02:00
Filip Hrisafov
0a2a0aa526
#2610 Add support for conditions on source parameters + fix incorrect use of source parameter in presence check method ( #3543 )
...
The new `@SourceParameterCondition` is also going to cover the problems in #3270 and #3459 .
The changes in the `MethodFamilySelector` are also fixing #3561
2024-04-29 08:05:52 +02:00
Filip Hrisafov
0a935c67a7
#3565 Presence check methods should not be considered as valid mapping candidates
2024-04-28 20:22:53 +02:00
hduelme
8e66445fe9
#3564 Correct issue key for Issue3485Test
2024-04-02 12:00:41 +02:00
Oliver Erhart
e815e3cb1e
#3524 Provide tests with Lombok style super builders
2024-03-10 09:15:37 +01:00
hduelme
2c12e75bfc
#3485 Exception for Mapping to target = "." without source
2024-03-03 18:59:32 +01:00
Filip Hrisafov
c374b5267f
#3360 Do not report unmapped source and target properties when result type is abstract due to runtime exception subclass exhaustive strategy ( #3526 )
2024-02-11 19:53:38 +01:00
Zegveld
bb1cd63485
#2788 Improve unmapped source properties message for forged methods
2024-02-11 13:29:34 +01:00
Filip Hrisafov
ca1fd0d85d
#3331 Do not handle defined mappings if the result type is abstract due to runtime exception subclass exhaustive strategy ( #3487 )
2024-02-11 12:51:19 +01:00
Oliver Erhart
8191c850e0
#3323 Support access to the source property name
2024-02-11 10:42:23 +01:00
hduelme
0a43bc088f
Add missing generic type to Javadoc Builder ( #3499 )
2024-01-28 18:07:57 +01:00
hduelme
90a3ce0b46
Use primitive types in NativeTypes ( #3501 )
2024-01-28 18:06:42 +01:00
hduelme
6322138028
Add missing generic diamond operator to MappingOptions ( #3498 )
2024-01-28 17:50:33 +01:00
Filip Hrisafov
60f162ca88
#3463 DefaultBuilderProvider should be able to handle methods in parent interfaces
2024-01-28 17:47:39 +01:00
Filip Hrisafov
6cb126cd7c
#3462 Stream getters should not be treated as alternative setter
2023-12-31 09:34:34 +01:00
Oliver Erhart
7e6fee8714
#1064 Provide a switch to turn off CheckStyle on generated test sources
2023-12-27 13:40:04 +01:00
Filip Hrisafov
6d99f7b8f3
#3473 Add Java 21 and EA to build matrix
...
Fix tests not running green on Java 21
Update Spring to run correctly on Java 21
2023-12-18 07:35:26 +01:00
mosesonline
fa857e9ff4
bump some lib versions ( #3460 )
2023-12-10 15:26:47 +01:00
Ravil Galeyev
930f5709b6
#3400 Remove unnecessary casts to long and double
2023-11-29 22:25:22 +01:00