From 884569f9ccc48f90c728f0d9e0d6d49f47680966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9da=20Housni=20Alaoui?= Date: Sun, 11 Mar 2018 21:22:18 +0100 Subject: [PATCH] HHH-12378 JDK 9 support: Remove javax.annotation.Generated usage --- .../src/main/java/org/hibernate/jpamodelgen/ClassWriter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/ClassWriter.java b/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/ClassWriter.java index a25508c814..d13e0de30f 100644 --- a/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/ClassWriter.java +++ b/tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/ClassWriter.java @@ -13,7 +13,6 @@ import java.io.StringWriter; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; -import javax.annotation.Generated; import javax.annotation.processing.FilerException; import javax.lang.model.element.Element; import javax.lang.model.element.TypeElement; @@ -199,7 +198,7 @@ public final class ClassWriter { private static String writeGeneratedAnnotation(MetaEntity entity, Context context) { StringBuilder generatedAnnotation = new StringBuilder(); generatedAnnotation.append( "@" ) - .append( entity.importType( Generated.class.getName() ) ) + .append( entity.importType( "javax.annotation.Generated" ) ) .append( "(value = \"" ) .append( JPAMetaModelEntityProcessor.class.getName() ); if ( context.addGeneratedDate() ) {