bmarwell commented on a change in pull request #90:
URL: https://github.com/apache/openjpa/pull/90#discussion_r759164703
##########
File path:
openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java
##########
@@ -311,10 +314,26 @@ private void annotate(SourceCode source, String
originalClass) {
SourceCode.Class cls = source.getTopLevelClass();
cls.addAnnotation(StaticMetamodel.class.getName())
.addArgument("value", originalClass + ".class", false);
- if (generatedSourceVersion >= 6) {
- cls.addAnnotation(Generated.class.getName())
- .addArgument("value", this.getClass().getName())
- .addArgument("date", new Date().toString());
+ if ("false".equals(this.addGeneratedOption)) {
+ return;
+ }
+
+ if ("force".equals(this.addGeneratedOption)) {
+ cls.addAnnotation(javax.annotation.Generated.class.getName())
+ .addArgument("value", this.getClass().getName())
+ .addArgument("date", new Date().toString());
Review comment:
Will do!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]