324 Commits

Author SHA1 Message Date
Andreas Gudian
84902318f9 #153 Use clear() / addAll(..) for collection properties in @MappingTarget mappings 2014-03-02 23:19:03 +01:00
Gunnar Morling
cfa2dc0bd0 #142 Fixing time zone dependent tests 2014-03-02 19:17:28 +01:00
Andreas Gudian
16112a6156 #136 Add additional test to verify compatibility of @TargetType with nested mapping methods 2014-02-28 23:09:19 +01:00
Andreas Gudian
4372e726ee #136 Introduce @TargetType to pass the target type of a custom property mapping method or factory method as parameter to the method 2014-02-28 22:40:53 +01:00
Gunnar Morling
8ddb2a9fb3 #134 Formatting 2014-02-28 19:54:47 +01:00
Gunnar Morling
53ff1b7e13 #134 Some clean-up:
* Removing obsolete method
* Using more descriptive method and test name
* Some comments
2014-02-28 19:54:36 +01:00
sjaakd
27c85d8f97 #134 adding nested method match functionality including UT after merge with #135 2014-02-27 23:11:11 +01:00
sjaakd
a9e1438c1e #151 improving UT for #120 and fixing some missing imports 2014-02-27 00:12:15 +01:00
Gunnar Morling
40ed18af0b #135 Adding some JavaDocs; Removing unused method 2014-02-26 22:05:17 +01:00
Gunnar Morling
03dca9a8d4 #135 Formatting and typo fix 2014-02-26 20:03:21 +01:00
sjaakd
4d22ff7abd #135 first attempt, UT based on scope AND name now 2014-02-26 19:45:16 +01:00
sjaakd
093019b5d9 Merge branch '146' of github.com:gunnarmorling/mapstruct into gunnarmorling_146 2014-02-26 07:28:42 +01:00
Gunnar Morling
a6bb427d86 #146 Making sure result type of bean mapping method and exception types from conversions are properly referenced if they are not imported 2014-02-26 01:45:39 +01:00
Gunnar Morling
76783edc1c #128 Raising an error in case source enum constant without corresponding constant in target is not mapped 2014-02-23 17:40:22 +01:00
Gunnar Morling
d8df52dbc0 #128 Raising an error in case mapped enum constants don't exist 2014-02-23 17:40:22 +01:00
Gunnar Morling
033def2054 #128 Raising an error in case an enum constant is mapped more than once 2014-02-23 17:40:21 +01:00
Gunnar Morling
f0f3335e28 #128 Adding support for enum mapping methods 2014-02-23 17:40:19 +01:00
sjaakd
08b6008ed1 #120, solving cyclic packaging dependencies, Moved Context (as inner class) to ConversionContext in model.common, corrected BuildIn to BuiltIn, all requested built-in methods added 2014-02-22 22:56:47 +01:00
sjaakd
5cdcc88b62 #120 refactoring first attempt after feedback. Making a clean overview by squashing earlier commits on 120. Rebasing master. 2014-02-22 22:53:27 +01:00
Gunnar Morling
8c8f27ca6b #103 Formatting, added a todo 2014-02-22 10:43:46 +01:00
Andreas Gudian
8fe7a846c8 #103 keep defined accessibility modifier of mapper and mapping methods in the generated code 2014-02-16 22:26:31 +01:00
Andreas Gudian
ace47f7e67 extend current classloader instead of creating a classloader chain. 2014-02-16 22:24:59 +01:00
Gunnar Morling
cce558827d #34 Adding concerned method to reported diagnostic in case a mapping is ambiguous 2014-02-09 19:19:09 +01:00
Gunnar Morling
785ccece90 #34 Asserting line and source type of diagnostics only when specified via @Diagnostic 2014-02-09 19:17:24 +01:00
Gunnar Morling
f122daec6d #81 Formatting 2014-02-09 11:21:52 +01:00
sjaakd
aa06a767ac #81 adding implementation for Map and Iterable types, and adding unit test. NOTE a TODO is still in MapperCreationProcessor 2014-02-02 20:36:49 +01:00
sjaakd
3f94c51884 #81 adding unit test for ambiguous factory error 2014-02-02 19:08:11 +01:00
sjaakd
8bdec6405d #81 integrating #112 in the factory solution 2014-01-31 22:54:32 +01:00
sjaakd
c3df6d8572 squash issue 81 after rebase to issue 112 2014-01-30 23:09:36 +01:00
Andreas Gudian
de7aab04b0 Remove JDK 7 API usage 2014-01-30 20:29:39 +01:00
Gunnar Morling
e5668325f0 #112 Making sure not more than one type with the same simple name is imported 2014-01-29 21:03:20 +01:00
Gunnar Morling
78b0943953 #112 Making sure mapper references have unique variable names and referenced methods are invoked on the right variable 2014-01-29 00:35:26 +01:00
Gunnar Morling
05b2e49364 #112 Making @Inject et al. available for processor tests 2014-01-28 22:21:02 +01:00
Gunnar Morling
5dd3ab2bec #104 Fixing issue which prevented the mapping of a property which has no setter in the source and is named as source via @Mapping 2014-01-21 22:42:55 +01:00
Gunnar Morling
8dd505b63e #92 Formatting and minor clean-ups 2014-01-20 23:20:41 +01:00
sjaakd
6c2683a6f3 #92 The getter methods and setter methods contain pure getters and setters. A new method has been created to offer an alternative target accessors for Collection properties when setter is not available. The lists for this are kept separate. 2014-01-20 22:37:31 +01:00
sjaakd
e5cfb07af5 issue 92 solution for list getter without setter 2014-01-20 22:37:31 +01:00
Gunnar Morling
3e34b6f6eb #94 Adding another test 2014-01-20 00:09:13 +01:00
Gunnar Morling
77e6890b00 #94 Formatting, renaming test 2014-01-19 23:56:35 +01:00
sjaakd
e82277e0fc #94 Allowing to map the same source property to several target properties 2014-01-19 23:45:39 +01:00
Andreas Gudian
cd058663f4 #90 extend DefaultCollectionImplementationTest to cover all collection and map types declared in the test mapper 2014-01-12 21:49:09 +01:00
Andreas Gudian
fc0a4570b7 #89 create test for correct instanciation of referenced mappers with default component model 2014-01-12 21:07:11 +01:00
Gunnar Morling
3c8f969573 #86 Updating license header 2014-01-12 19:48:08 +01:00
Gunnar Morling
a7be616ee9 #34 Fixing some typos; Removing Type#isAnnotatedMapper() in favor of the more generic isAnnotatedWith() method; Formatting 2014-01-08 22:26:51 +01:00
Andreas Gudian
aa3fa638b9 #34 Find best matching property mapping methods
#82 fix using Mappers factory to instanciate used mappers annotated with @Mapper
2014-01-07 22:55:46 +01:00
Gunnar Morling
f9bfc4572e #87 Supporting iterable mapping methods where the target element type is the same as or a super-type of the source element type; Raising an error if iterable or map mapping methods can't be generated 2014-01-06 00:00:23 +01:00
Gunnar Morling
e325862448 #79 Formatting 2014-01-05 20:08:15 +01:00
Gunnar Morling
623acb6f10 #79 Some typo fixes, simplifications and comment improvements 2014-01-05 20:08:15 +01:00
sjaak
3bdc67f9ba Issue #79 Fixing @withClasses per test case 2014-01-05 20:08:15 +01:00
sjaak
b249c2ced1 Issue #79 Adding generics solution for custom mappers 2014-01-05 20:07:55 +01:00