yesamer commented on code in PR #4178:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/4178#discussion_r2822907254


##########
addons/common/jbpm-usertask-storage-jpa/src/main/java/org/jbpm/usertask/jpa/mapper/TaskMetadataEntityMapper.java:
##########
@@ -63,7 +63,8 @@ public void mapInstanceToEntity(UserTaskInstance 
userTaskInstance, UserTaskInsta
                 metadataEntity.setValue(JSONUtils.valueToString(value));
                 metadataEntity.setJavaType(value.getClass().getName());
             }
-            repository.persist(metadataEntity);
+            // No explicit persist needed: parent has @OneToMany(cascade = 
CascadeType.ALL),

Review Comment:
   @jeejz See this can be removed too
   
   (Out of curiosity, keeping the persist call results in some issue?



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