145 Commits

Author SHA1 Message Date
Andreas Gudian
e5b9ee2cb1 #178 avoid unused imports in property-mappings 2014-04-13 12:59:02 +02:00
Gunnar Morling
c374f7c818 #191 Adding Christian to copyright.txt 2014-04-05 18:26:53 +02:00
Christian Schuster
9711d5615e #191 extend delegate template to avoid duplicate mapper instantiation 2014-04-04 21:18:11 +02:00
Gunnar Morling
e0da882540 #163 Adding support for decorators 2014-03-05 00:50:52 +01:00
Gunnar Morling
427cc16390 #163 Preparations for generating other top-level types then mappers themselves 2014-03-05 00:50:52 +01:00
Gunnar Morling
ab7641731f #153 Formatting of generated code 2014-03-04 00:23:30 +01:00
Andreas Gudian
84902318f9 #153 Use clear() / addAll(..) for collection properties in @MappingTarget mappings 2014-03-02 23:19:03 +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
sjaakd
27c85d8f97 #134 adding nested method match functionality including UT after merge with #135 2014-02-27 23:11:11 +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
f0f3335e28 #128 Adding support for enum mapping methods 2014-02-23 17:40:19 +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
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
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
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
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
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
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
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
e23ee852fa #109 Breaking up cycle between model and source model by extracting package with shared types 2014-01-26 12:38:27 +01:00
Gunnar Morling
e072826c9d #109 Removing package cycle around Options class 2014-01-26 11:46:48 +01:00
Gunnar Morling
d7864e0566 #92 Making generated code more null-safe and avoiding unnecessary collection instantiation 2014-01-21 00:13:10 +01:00
sjaakd
e5cfb07af5 issue 92 solution for list getter without setter 2014-01-20 22:37:31 +01:00
Gunnar Morling
3c8f969573 #86 Updating license header 2014-01-12 19:48:08 +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
Andreas Gudian
7d9b42cf35 #82 Use Mappers factory to instanciate used mappers annotated with @Mapper 2014-01-03 20:43:31 +01:00
Gunnar Morling
d38a72c534 #74 Adding support for generating methods from abstract classes 2013-11-30 23:05:01 +01:00
Gunnar Morling
3e8ba36774 #64 Removing superfluous indentations from templates; Each template can start with an indentation of 0 as it will be correctly indented automatically later on 2013-08-18 00:30:46 +02:00
Gunnar Morling
b8f7c50a03 #64 Removing redundant empty lines 2013-08-17 12:38:08 +02:00
Gunnar Morling
186c127ebd #61 Instantiating collections/maps also if implementation type is used as target type 2013-08-15 23:53:52 +02:00
Gunnar Morling
4f44cea112 #61 Making sure type parameters are correctly specified when instantiating collection types 2013-08-15 23:53:52 +02:00
Gunnar Morling
88011a91a3 #61 Simplifying template a bit 2013-08-15 23:53:51 +02:00
Gunnar Morling
585f944574 #61 Refactoring Type into a wrapper around TypeMirror 2013-08-15 23:53:51 +02:00
Gunnar Morling
86a8e72692 #31 Providing support for bean mapping methods with several source parameters 2013-08-15 23:53:51 +02:00
Gunnar Morling
b61f0ce915 #31 Improving formatting of generated code 2013-08-15 23:53:51 +02:00
Gunnar Morling
9e5fc2af8e #19 Adding template for Parameter, simplifying PropertyMapping by passing source and target bean via template 2013-07-21 11:59:02 +02:00
Gunnar Morling
a931cff0e5 Merge branch 'agudian_19'
# By Andreas Gudian (2) and Gunnar Morling (1)
* agudian_19:
  #19 Simplifying creation of MappingMethod objects
  #19 Map into existing instances. - Either defined explicitly with @MappingTarget, or implicitly as last parameter in a void method.
  Have spaces on empty for iterator pads
2013-07-21 11:41:49 +02:00
Gunnar Morling
476f147078 #19 Simplifying creation of MappingMethod objects 2013-07-21 10:45:53 +02:00
Andreas Gudian
466a640ced #19 Map into existing instances.
- Either defined explicitly with @MappingTarget, or implicitly as last parameter in a void method.
2013-07-16 23:09:57 +02:00
Gunnar Morling
1b0447d404 #53 Avoiding conlicting variable names 2013-07-15 23:43:11 +02:00
Gunnar Morling
346512cc82 #44 Generating Map mapping methods 2013-07-14 17:09:38 +02:00
Gunnar Morling
592371e562 #44 Fixing some issues around iterable methods 2013-07-14 17:09:38 +02:00