From 40fe92c59772abc186e482772d74a008a153b7ed Mon Sep 17 00:00:00 2001 From: Gunnar Morling Date: Sun, 3 Mar 2013 13:06:25 +0100 Subject: [PATCH] #1 Adding @Generated annotation to generated mappers --- parent/pom.xml | 2 +- processor/src/main/resources/mapper-implementation.ftl | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/parent/pom.xml b/parent/pom.xml index 0daf36689..c3e925d46 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -37,7 +37,7 @@ org.freemarker freemarker - 2.3.14 + 2.3.19 org.testng diff --git a/processor/src/main/resources/mapper-implementation.ftl b/processor/src/main/resources/mapper-implementation.ftl index cf40388b3..957b0c5d5 100644 --- a/processor/src/main/resources/mapper-implementation.ftl +++ b/processor/src/main/resources/mapper-implementation.ftl @@ -19,7 +19,12 @@ package ${packageName}; import java.util.ArrayList; import java.util.List; +import javax.annotation.Generated; +@Generated( + value = "org.mapstruct.ap.MappingProcessor", + date = "${.now?string("yyyy-MM-dd'T'HH:mm:ssZ")}" +) public class ${implementationName} implements ${interfaceName} { <#list beanMappings as beanMapping>