Kevin
0192bdaf83
#571 Add Constructor Injection for Annotation Based Component Model
...
- Allow configuring of injection strategy (Constructor / Field)
- Default injection strategy is Field
2017-10-20 22:56:48 +02:00
Kevin Grüneberg
499dbd4561
#1273 Fix for NullValueMappingStrategy#RETURN_DEFAULT when using collections
...
When mapping a collection using NullValueMappingStrategy#RETURN_DEFAULT and the source is null, the target will be an empty collection.
2017-09-17 23:03:24 +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
3ebd09eec9
#1244 Fix problems with special word for FreeMarker in some cases
2017-07-10 20:37:09 +02:00
Filip Hrisafov
82da71199d
#543 Make sure that the bound type is imported if the type is wildcard
2017-07-02 20:25:35 +02:00
Cornelius
b5b0c04313
#1170 Fix wildcards in collection adder mappings
2017-06-29 00:01:49 +02:00
Filip Hrisafov
ceaa869c65
#1215 Add import correctly for array types
2017-05-30 21:35:39 +02:00
Filip Hrisafov
15133d5a0f
#777 Set initial capacity for new collection / map element in collection / map mappings
2017-05-06 15:04:42 +02:00
Filip Hrisafov
763deaa917
#1164 Split the SetterWrapperForCollections into multiple models:
...
* SetterWrapperForCollectionsAndMaps - Does a simple assignment without doing any null checks
* SetterWrapperForCollectionsAndMapsWithNullCheck - Does an assignment that does a null check before assignment and takes direct assignment into consideration
* ExistingInstanceSetterWrapperForCollectionsAndMaps - Used for wrapping an assignment when the method is an update method
Additionally don't do local var assignment if there are presence checkers
2017-04-25 22:41:51 +02:00
sjaakd
e154452d53
#1126 Add new CollectionMappingStrategy TARGET_IMMUTABLE
2017-03-14 21:36:36 +01:00
Filip Hrisafov
d4c6250944
#1102 Add support for Auto forging of Enum properties
2017-03-12 15:34:46 +01:00
sjaakd
58992b8edf
#1105 cleaning up MethodReference freemarker template
2017-02-26 11:39:14 +01:00
Filip Hrisafov
f654da2563
#1059 Add ftlvariable to the ftl files so we can have autocomplete with IntelliJ
2017-02-21 21:36:01 +01:00
Filip Hrisafov
8dbcc43a8e
#1082 Do not generate an empty line after method start for NestedPropertyMappingMethod
2017-02-19 16:13:00 +01:00
Filip Hrisafov
56ea9dd168
#1050 Use the getNull method from the Type instead of the getDefaultValue
2017-02-05 18:49:43 +01:00
Filip Hrisafov
9c30727262
#1061 Support for generating Mappers in the default package
2017-02-05 08:56:36 +01:00
Andreas Gudian
ac03999170
#975 Allow calling BeforeMapping/AfterMapping methods directly on @Context params
2017-02-02 21:57:26 +01:00
sjaakd
1406c0b6db
#1011 Using ForgedMethods to forge nested target mappings
2017-02-01 10:07:44 +01:00
Filip Hrisafov
6b07dda829
#962 Add support for mapping Java 8 Streams
2017-01-06 09:49:16 +01:00
Andreas Gudian
48d7963cca
Merge branch '1.1-master'
2017-01-05 22:04:29 +01:00
Andreas Gudian
22b28f58db
Merge branch '1.1-master'
2017-01-05 21:11:10 +01:00
Andreas Gudian
b02f8e5df5
#1032 Update license headers to 2017
2017-01-05 18:55:26 +01:00
Andreas Gudian
44fe197d3b
#975 Introduce @Context annotation for passing context parameters through generated mapping methods to custom methods
2016-12-25 11:05:58 +01:00
Filip Hrisafov
00b8ae01a1
#1014 do not generate FQN for extends/super bound Types
2016-12-22 23:54:50 +01:00
sjaakd
1f0533ca94
#996 refactor ArrayCopyWrapper
2016-12-20 23:07:15 +01:00
Andreas Gudian
79f87e8833
#975 Refactor method-matching to unify selection and rendering of mapping method, factories and lifecycle methods
2016-12-19 22:36:12 +01:00
sjaakd
46363028bd
#988 Strange enters in templates
2016-12-19 21:59:47 +01:00
sjaakd
70896245d7
#973 Setter and Update wrapper refactoring and cleanup
2016-12-19 21:59:47 +01:00
navpil
81ce66044f
#60 automapping
2016-12-19 21:45:14 +01:00
sjaakd
81a4cb360d
#981 Refactoring, move SourceRHS init to start of property build.
2016-12-05 22:17:34 +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
Filip Hrisafov
746f49fe3d
#557 Provide a way to use direct field mappings within mapstruct
2016-12-03 21:57:13 +01:00
Andreas Gudian
050c398da6
#966 Avoid missing newlines between methods and multiple newlines (generally) by adding a checkstyle rule, fixing current incarnations.
2016-12-01 21:52:58 +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
sjaakd
afaca926ae
#899 Refactoring adderwrapper, simplifying SourceRHS.
2016-11-27 22:47:17 +01:00
sjaakd
488eae2de2
#968 removing strange enters and spaces in formatting.
2016-11-26 17:38:10 +01:00
sjaakd
4c4a9ea934
#954 cleanup
2016-11-14 22:49:47 +01:00
sjaakd
9186978e1f
#954 Explicit set to null NOT for NVCS.ALWAYS and presence-checkers
2016-11-14 22:49:31 +01:00
sjaakd
1fa0c4aa3b
#913 New property mapping collection handling
2016-11-06 20:48:10 +01:00
Andreas Gudian
f8bb31f98d
#900 Use "@Generated" only when it's available on the classpath.
2016-10-28 20:26:13 +02:00
sjaakd
a1131e68c9
#689 Joda LocalTime to XmlGregorianCalendar built in and vice versa
2016-10-25 21:48:08 +02:00
sjaakd
aec5922bd0
#689 Joda LocalDate to XmlGregorianCalendar built in and vice versa
2016-10-25 21:48:08 +02:00
sjaakd
e43b00d29c
#689 Joda LocalDateTime to XmlGregorianCalendar built in and vice versa
2016-10-25 21:48:08 +02:00
sjaakd
13395f5958
#689 Joda DateTime to XmlGregorianCalendar built in and vice versa
2016-10-25 21:48:08 +02:00
Gunnar Morling
c64919829a
#852 Adding explicit conversion for LocalDate <> XMLGregorianCalendar
2016-10-23 21:00:57 +02:00
Andreas Gudian
d94d5857ce
#919 Fix compilation error in map-mapping methods with non-generic maps as source
2016-10-10 20:04:44 +02:00
stefan.may
1be3c4dbaa
#853 Enable support for Iterable / Map classes which are not generic, like they are generated by JAXB (e.g. public class StringList extends List<String>)
2016-09-21 22:42:58 +02:00
Gunnar Morling
9753fdc17a
#765 Omitting "return" key word when returning from decorated void method
2016-09-21 22:26:43 +02:00
Filip Hrisafov
5fd0c3e3d4
remove builtin methods; remove test which is not needed anymore
2016-09-21 19:55:20 +02:00
Filip Hrisafov
f88fd6ece9
#858 : Add built in methods for java.sql.Time, java.sql.Timestamp and java.sql.Date
2016-09-21 19:55:20 +02:00