[ 
https://issues.apache.org/jira/browse/OPENJPA-2891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17451567#comment-17451567
 ] 

ASF subversion and git services commented on OPENJPA-2891:
----------------------------------------------------------

Commit e7774e32948015cfd8de665e18a091eb2e4564bd in openjpa's branch 
refs/heads/master from Romain Manni-Bucau
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=e7774e3 ]

Merge pull request #90 from bmarwell/OPENJPA-2891_annotation

[OPENJPA-2891] allow configuration of @Generated annotation.

> @Geenrated annotation cannot be disabled for static metamodel
> -------------------------------------------------------------
>
>                 Key: OPENJPA-2891
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2891
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>            Reporter: Benjamin Marwell
>            Priority: Critical
>             Fix For: 3.2.1
>
>
> The {{@Generated}} annotation will be added to any generated static metamodel 
> class, no matter the annotation is available.
> From Java9 upwards, this annotation is not on the classpath anymore (by 
> default), leading to compile errors.
> I would suggest to add either an override parameter (similar to hibernate, 
> {{-AaddGeneratedAnnotation=false}}, see 
> https://docs.jboss.org/hibernate/orm/5.0/topical/html/metamodelgen/MetamodelGenerator.html
> Or
> detect whether the annotation is on the classpath.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to