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


##########
addons/common/jbpm-usertask-storage-jpa/src/main/java/org/jbpm/usertask/jpa/mapper/TaskOutputsEntityMapper.java:
##########
@@ -64,7 +64,8 @@ public void mapInstanceToEntity(UserTaskInstance 
userTaskInstance, UserTaskInsta
                 
outputEntity.setValue(JSONUtils.valueToString(value).getBytes(StandardCharsets.UTF_8));
                 outputEntity.setJavaType(value.getClass().getName());
             }
-            repository.persist(outputEntity);
+            // No explicit persist needed: parent has @OneToMany(cascade = 
CascadeType.ALL),
+            // so child entities are automatically persisted when the parent 
is saved.

Review Comment:
   @jeejz See this can be removed too



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