462 Commits

Author SHA1 Message Date
Gunnar Morling
f8aa758ecf #135 Simplifying XmlElementDeclSelector a bit 2014-02-26 23:14:23 +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
b84a5df84e #135 applied list of MethodSelectors idea. 2014-02-26 19:45:16 +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
Gunnar Morling
5e19394e69 #120 Removing unused constructor 2014-02-22 23:14:43 +01:00
Gunnar Morling
9b8e22462f #120 Consolidating method reference look-up in MapperCreationProcessor 2014-02-22 23:08:40 +01:00
Gunnar Morling
40669a0f8a #120 Minor doc improvements 2014-02-22 23:08:40 +01:00
Gunnar Morling
2398d94752 #120 Don't hold a reference to TypeFactory in built-in method types 2014-02-22 23:07:59 +01:00
Gunnar Morling
52ccedb0e1 #120 Moving built-in methods to o.m.a.model.source.builtin 2014-02-22 23:07:59 +01:00
Gunnar Morling
bc5dda82f8 #120 Making built-in methods null-safe 2014-02-22 23:07:30 +01:00
Gunnar Morling
32f0bc0e22 #120 Formatting and commenting 2014-02-22 23:07:30 +01:00
Gunnar Morling
47ecc23fa0 #120 Propagate built-in methods as MappingMethod implementation to the Mapper in order to avoid the need for specific handling in the template 2014-02-22 23:06:53 +01:00
sjaakd
34484c6686 #120 Renaming BasicMethod to Method 2014-02-22 23:05:05 +01:00
sjaakd
06b4220af8 #120 Renaming Method to SourceMethod 2014-02-22 23:05:04 +01:00
sjaakd
bab8c2bb9b #120 Moving BuildInMethod to the source model 2014-02-22 23:05:04 +01:00
sjaakd
2471edcf69 #120 Method and BuiltInMethod implement a common interface that can be used for matching. 2014-02-22 23:02:44 +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
6531d995b0 #120 reintroducing lost generics selection check and making sure MapperCreationProcessor state is cleared. 2014-02-22 22:53:27 +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
f69069c2f8 #127 Working around broken Eclipse implementation of Types#asMemberOf() 2014-02-12 23:47:52 +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
cd14bd368f #124 Making sure variable names always start with a lower-case letter 2014-02-09 17:50:51 +01:00
Gunnar Morling
f122daec6d #81 Formatting 2014-02-09 11:21:52 +01:00
sjaakd
4bd1022b89 #81 re-introducing the check on if a generated method returns an interface type, now narrowed to absence of factory methods. 2014-02-06 23:00:57 +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
11ba30f8a5 #81, removing empty lines after factory method from code generation 2014-02-02 17:15:45 +01:00
sjaakd
9c45c96d8d #81, removing FactoryMethod in favour of MethodReference 2014-02-02 17:15:07 +01:00
sjaakd
a9d2f788de #81, refactoring MappingMethodReference to MethodReference to accomodate for factory usage of this method 2014-02-02 16:49:35 +01:00
sjaakd
b456cc8b6b #81, remove isHasFactoryMethod construction in the Freemarker template in favour for the '??' 2014-02-02 16:40:17 +01:00
sjaakd
8bdec6405d #81 integrating #112 in the factory solution 2014-01-31 22:54:32 +01:00
sjaakd
b565c6fe60 #81 making use of template FactoryMethod.ftl 2014-01-31 22:25:41 +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
6b28c161e9 #112 Raising descriptive exception in case a type couldn't be loaded by name 2014-01-28 22:13:05 +01:00
Gunnar Morling
768083039e #109 Adding enforcer rule to fail the build when detecting package cycles 2014-01-26 12:39:19 +01:00