From fb286e3d398cae9ab6892d31f8fa883120c11987 Mon Sep 17 00:00:00 2001 From: Filip Hrisafov Date: Thu, 22 Sep 2016 18:07:04 +0200 Subject: [PATCH] #858 Update documentation with java.sql.* implicit type conversions --- .../src/main/asciidoc/mapstruct-reference-guide.asciidoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc b/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc index bfcf35424..b0fb20f6d 100644 --- a/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc +++ b/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc @@ -615,6 +615,12 @@ public interface CarMapper { * Between `java.time.ZonedDateTime` from Java 8 Date-Time package and `java.util.Calendar`. +* Between `java.sql.Date` and `java.util.Date` + +* Between `java.sql.Time` and `java.util.Date` + +* Between `java.sql.Timestamp` and `java.util.Date` + * When converting from a `String`, omitting `Mapping#dateFormat` results in using the default pattern and date format symbols for the default locale. An exception to this rule is `XmlGregorianCalendar` which results in parsing the `String` according to http://www.w3.org/TR/xmlschema-2/#dateTime[XML Schema 1.0 Part 2, Section 3.2.7-14.1, Lexical Representation]. [[mapping-object-references]]