fjtirado commented on code in PR #2191:
URL: 
https://github.com/apache/incubator-kie-kogito-apps/pull/2191#discussion_r1954646849


##########
data-index/data-index-storage/data-index-storage-mongodb/src/main/java/org/kie/kogito/index/mongodb/model/ProcessDefinitionEntity.java:
##########
@@ -148,11 +148,11 @@ public void setAnnotations(Set<String> annotations) {
         this.annotations = annotations;
     }
 
-    public Map<String, String> getMetadata() {
+    public Map<String, Object> getMetadata() {

Review Comment:
   I tested it works by performing a quick test
   
   ```
   public class MongoDBTest {
       public static void main(String[] args) {
           String uri = "mongodb://localhost";
           try (MongoClient mongoClient = MongoClients.create(uri)) {
               MongoDatabase database = mongoClient.getDatabase("sample_mflix");
               MongoCollection<Document> collection = 
database.getCollection("movies");
               
              // Map<String,String> map = Map.of("name","pepe");
              // Document insert = new Document();
               //insert.put("person", map);
               //collection.insertOne(new Document(insert));
               Document doc = collection.find(eq("person.name", 
"pepe")).first();
               Map<String,Object> map = (Map<String, Object>) doc.get("person");
               if (doc != null) {
                   System.out.println(map);
               } else {
                   System.out.println("No matching documents found.");
               }
           }
       }
   }
   ```
   



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