259 Commits

Author SHA1 Message Date
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
Andreas Gudian
5927431791 #895 Fix generating forged iterable methods for mapping multi-dimensional Array types 2016-09-17 11:58:27 +02:00
sjaakd
371e0884a4 #891 Cleanup and renaming of Direct and AssignmentFactory 2016-09-16 23:05:37 +02:00
sjaakd
750af10900 #891 Implementation and unit test 2016-09-16 23:05:37 +02:00
sjaakd
c73d007fc8 #865 Collection NPE check for a calling update method. 2016-08-31 22:29:45 +02:00
sjaakd
a5a82cf5f1 #700 Fixing enum constants and adding unit test. 2016-08-30 21:55:21 +02:00
sjaakd
70ba92b229 #389 Nested target properties 2016-07-20 22:00:21 +02:00
sjaakd
b1f03689d9 #669 rework into sourcepresencecheck SPI and nullvaluecheckstrategy 2016-07-05 22:50:10 +02:00
sjaakd
3700052cc6 #679 Adding testcases, helpermethods for decimalconversion, doc update 2016-06-15 23:34:48 +02:00
sjaakd
ae4d0f77e1 #749 Introduction of @ValueMapping, @ValueMappings 2016-03-15 21:19:55 +01:00
Gunnar Morling
4a74ee8f6c #732 Properly copying enum sets 2016-02-02 21:51:36 +01:00
Gunnar Morling
34aceff5f8 #723 Updating year in license headers 2016-01-16 18:00:09 +01:00
Andreas Gudian
1ae3d07388 #701 Update checkstyle version and fix several previously undetected issues in our code (mostly missing whitespaces and redundant modifiers) and in the generated code (superflous whitespaces before commas)
Requrires update of guava and cdi-weld do to dependency convergence.
2016-01-02 17:50:09 +01:00
sjaakd
45db85a7be #636 - refinement of solution java8 default and static interface methods 2015-09-14 09:06:22 +02:00
Ivo Smid
a15a67ff47 #636 - fix - default methods (Java 8) do not work anymore 2015-09-14 09:02:33 +02:00
Andreas Gudian
590363cf2f #592 Fix Decorator-support for component model 'spring' and 'jsr330', extend decorator integration-tests, add examples to @DecoratedWith javadoc 2015-08-23 16:40:54 +02:00
Christophe Labouisse
29f720b35e #472, #556 Make implementation package and name configurable
- Add `implementationName` & `implementationPackage` to `@Mapper` and
`@MapperConfig'

- Generate a file in `META-INF/services` when a custom name or package
has been configured

- `Mappers` use `ServiceLoader` first in order to get a mapper's
  implementation before falling back to the former method

- Change the `MapperServiceProcess` behaviour to return `default` rather
  than `null` when no component model is defined
2015-08-14 21:03:33 +02:00
Andreas Gudian
2a385c0ec8 #600 Improve generated assignment code when using default-values, enhance javadoc a little and remove unused attribute in PropertyMapping 2015-08-12 23:58:56 +02:00
luxmeter
964f676af6 #600 added defaultValue feature 2015-08-12 23:58:56 +02:00