1418 Commits

Author SHA1 Message Date
dgruntz
cfe0f6250c Renames MAPPER field to INSTANCE (#1632) 2018-10-25 18:26:39 +01:00
Sjaak Derksen
a09d980773
#1593 additional testcase to test multiple source arguments icw @MappingConfig (#1630) 2018-10-20 11:21:13 +01:00
Florian Tavares
71e9bd3699 #1301 code improvements / adaptations after language-level upgrade 2018-10-19 20:36:07 +01:00
Florian Tavares
d81d3e46a4 #1301 Use Java 8 as baseline for MapStruct
* Move classes from mapstruct-common into mapstruct
* Use Java 8 @Repeatable for @Mappings and @ValueMappings in the mapstruct module
* Add relocation for mapstruct-jdk8 to mapstruct
* Use of 1.8 source and target versions from parent POM
* Update documentation to match
* Update versions of some maven plugin crashing build on Java 8
* Drop JDK 6 & 7 support in integration tests
* Remove mapstruct-common module (it was never deployed to Central)
2018-10-15 22:16:33 +02:00
Filip Hrisafov
20bff96e99
#1591 Update reference guide with implicit conversion between java.time.LocaDate and java.sql.Date 2018-10-15 21:46:23 +02:00
Sivaraman Viswanathan
9f8c0749d1 #1591 Add support for mapping java.time.LocalDate to java.sql.Date 2018-10-15 21:41:53 +02:00
Filip Hrisafov
6d5243dc2f #1551 Use javax.annotation.processing.Generated if it is available and source version is at least RELEASE_9 2018-10-13 19:07:24 +02:00
Filip Hrisafov
0e0fd313e5 #1594 Add test case to show that it has been fixed 2018-10-13 10:27:49 +02:00
Filip Hrisafov
f17ddcfb18 #1608 Make sure that property names for fluent setters starting with is are handled properly (#1620) 2018-10-13 07:54:09 +01:00
Sjaak Derksen
fa1ab4b781
Update copyright.txt 2018-10-13 08:46:16 +02:00
Filip Hrisafov
ef82ebfbca #1595 Update reference guide with implicit conversion between java.time.Instant and java.util.Date 2018-10-13 08:17:20 +02:00
neoXfire
6b3cbaae9e #1595 Support for conversion between java.time.Instant and java.util.Date (#1622) 2018-10-12 20:10:25 +01:00
Sjaak Derksen
4f539d2a08
#1616 Adding an issue template to streamline answers 2018-09-26 20:48:54 +02:00
Sjaak Derksen
459f57e805
#1571 apply nullvaluecheck strategy on all relevant levels 2018-09-24 23:35:35 +02:00
Filip Hrisafov
dcddba6853
Add Sebastian to copyright.txt 2018-09-24 22:26:43 +02:00
Sebastian
30c2dadec7 #1561 add support for adders in combination with streams
- Extended Type#getAlternativeTargetAccessors to recognize stream read
  accessors for which no corresponding setter exists
  (there is only an add method)
- Extended SourceRHS#getSourceTypeForMatching to return the
  correct source type for streams too
- Add StreamAdderWrapper to map Stream -> Adder
- Extended PropertyMapping$PropertyMappingBuilder#assignToPlainViaAdder
  to return StreamAdderWrapper if source type is stream
2018-09-24 22:23:34 +02:00
Sjaak Derksen
5a4990c474
#1456 apply source presence tracking recursively (in nested source) 2018-09-22 14:06:53 +02:00
Sjaak Derksen
13aa947421
#1569 Reproducer missing Immubable buildertype import (#1605) 2018-09-12 16:26:09 +02:00
Sjaak Derksen
3da85bc178
#1596 Missing builder type import (#1602) 2018-09-02 22:19:21 +02:00
Sjaak Derksen
bd2c206f7f
#1590 ArrayList missing as import for NVMS.RETURN_DEFAULT (#1598) 2018-08-29 21:11:22 +02:00
Filip Hrisafov
ded8d88c73
#1578 Rename isBuilderSetter to isFluentSetter in the DefaultAccessorNamingStrategy 2018-08-18 21:58:22 +02:00
Filip Hrisafov
04576de1d1
#1552 Stop processing source parameters for unprocessed defined properties when a mapping is found 2018-08-18 19:58:02 +02:00
Sjaak Derksen
10f855fa9e
#1532 using fields and constructor fragments optimizing DataTypeFactory usage 2018-08-14 23:53:41 +02:00
Sjaak Derksen
5c2e049478
#1558 Annotations ElementType.TYPE_USE not handled correctly 2018-08-14 06:56:59 +02:00
Filip Hrisafov
e056311c1a
#1569 Make sure that converting Java 8 LocalDate to Date generates correct code
* ZoneOffset instead of ZoneId needs to be imported when performing a conversion from LocalDate to Date
2018-08-13 21:21:04 +02:00
Filip Hrisafov
0d3ec9042d
Add Saheb to copyright.txt 2018-08-11 22:21:56 +02:00
Saheb Preet Singh
08067b7f17 #1524 replaced java.beans.Introspector with a custom IntrospectorUtils class to avoid java.desktop module 2018-08-11 22:19:21 +02:00
Christian Bandowski
6b89539ff6 #1541 Fix NPE when using varargs in mapping methods 2018-07-24 18:19:42 +02:00
Christian Bandowski
0fa964038c #1499 Add Protobuf builder integration test
* Don't run the ProtobufBuilderTest with the processor_plugin_java8 and eclipse_jdt_java_8 (processor plugin runs before the proto java classes are created and the eclipse plugin has some bug)
* Include *.proto for license checks
2018-07-15 20:53:13 +02:00
Filip Hrisafov
e29c25e5cb [maven-release-plugin] prepare for next development iteration 2018-07-15 19:51:45 +02:00
Filip Hrisafov
c189aa7bb5 [maven-release-plugin] prepare release 1.3.0.Beta1 1.3.0.Beta1 2018-07-15 19:51:44 +02:00
Filip Hrisafov
12bfff8f46 #1411 Fix expected line in Diagnostic after reducing the test files copyright headers 2018-07-15 19:29:28 +02:00
MapStruct Team
b35126e609 #1411 Update copyright header on all files
* Use new shorter copyright header without a year
* Use SLASHSTAR_STYLE for Java files
2018-07-15 19:29:28 +02:00
Filip Hrisafov
347a436cda #1382 Change module for java.annotation.Generated in the documentation
closes #1382
2018-07-15 10:56:06 +02:00
Sjaak Derksen
58a2aa94bb
#1482 allowing generic self references in types when matching 2018-07-14 16:27:10 +02:00
Filip Hrisafov
616aaa986d #1479 Fix typos in the Javadoc 2018-07-12 23:30:37 +02:00
Filip Hrisafov
ef270caecb
#1479 Add support for Builders with multiple build methods (#1498)
* Add new @Builder annotation for defining a build method
* When there are multiple build methods look for a method named `build` and if found use it
* If @Builder is defined than look for a build method with the defined method
* When a type has multiple builder creation methods throw an exception and don't use the builder

Defaulting to a method named `build` will make sure that a correct method is selected for:
* FreeBuilder - it has two methods: `build` and `buildPartial`
* Protobuf - it has three methods: `getDefaultInstanceForType`, `build` and `buildPartial`
2018-07-12 23:16:53 +02:00
Filip Hrisafov
62ffa3fa43
Add Gervais to the copyright.txt 2018-07-12 22:14:56 +02:00
Gervais Blaise
c9bc1df132 Allow package-private mapper
Use and make the default constructor accessible to create the mapper
instance. 

fixes #1365
2018-07-12 22:12:09 +02:00
tomoya-yokota
81f82a54a5 Document of sample code is broken. 2018-07-11 20:29:08 +02:00
tomoya-yokota
e2c8559a62 Update document on gradle-apt-plugin 2018-07-11 20:21:53 +02:00
sngrekov
b03ca8b7a9 Add sample of @Mapping annotation to @InheritInverseConfiguration 2018-07-02 10:54:57 +02:00
tomoya-yokota
fc5f937a71 Fix Method name typo 2018-07-01 23:24:01 +02:00
Christian Bandowski
508de6733e #1523 dont lose timezone mapping Calendar to XMLGregorianCalendar 2018-06-21 22:32:36 +02:00
cvanburen
f4ed077aeb Documentation update, section 3, fixing typos 2018-06-05 23:05:21 +02:00
sjaakd
3a4fcb5bcb #1398 allowing @ObjectFactory methods on context, fixing javadoc 2018-05-24 22:51:51 +02:00
sjaakd
e67c849c17 #1398 allowing @ObjectFactory methods on context 2018-05-24 20:28:14 +02:00
Christian Bandowski
db851701ef #1454 add more tests for builder lifecycle methods 2018-05-17 21:39:38 +02:00
Christian Bandowski
eeddc17de4 #537 add unit test 2018-05-09 22:28:16 +02:00
sjaakd
6fbc4cf253 #1180 non existing (nested) property in shared config 2018-05-08 23:18:18 +02:00