apache / incubator-kie-kogito-apps

Kogito Apps - Kogito is a cloud-native business automation technology for building cloud-ready business applications.
http://kogito.kie.org
Apache License 2.0
61 stars 126 forks source link

[incubator-kie-issues-1084] User eager fetching in ProcessDefinitionEntity to avoid transaction errors #2032

Closed martinweiler closed 5 months ago

martinweiler commented 5 months ago

Fixes https://github.com/apache/incubator-kie-issues/issues/1084

elguardian commented 5 months ago

I am not sure this is the best approach. @fjtirado This happens when toString is invoked as it requires to load those lazy fields. If you have any other suggestion plz. go ahead.

fjtirado commented 5 months ago

@martinweiler I think removing the three collections from toString method will be enough. Lets keep loading of collections lazy. See https://struberg.wordpress.com/2016/10/15/tostring-equals-and-hashcode-in-jpa-entities/ for more rationale on that