tkobayas commented on code in PR #6414:
URL: 
https://github.com/apache/incubator-kie-drools/pull/6414#discussion_r2259522175


##########
drools-model/drools-canonical-model/src/main/java/org/drools/model/TypeMetaData.java:
##########
@@ -18,9 +18,19 @@
  */
 package org.drools.model;
 
+import java.util.List;
 import java.util.Map;
 
 public interface TypeMetaData extends NamedModelItem {
     Class<?> getType();
     Map<String, AnnotationValue[]> getAnnotations();
+
+    List<FieldMetaData> getFields();
+
+    interface FieldMetaData {
+
+        String getFieldName();
+
+        Map<String, AnnotationValue[]> getAnnotations();
+    }

Review Comment:
   So the basic concept is that we convey annotation/metadata across DRL -> 
generated Java code -> runtime FactType by writing TyepMetaData code in the 
generated Model source code. I had to add `FieldMetaData` to manage metadata on 
fields.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to