Skip to content

This should fix the same race condition in duplicate as 6c2a62469e53d in create #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jonenst
Copy link
Contributor

@jonenst jonenst commented Jul 4, 2022

The hashset is copied in toDto other we get
"Found shared references to a collection org.hibernate.HibernateException"
during the clone

Signed-off-by: HARPER Jon [email protected]

@jonenst jonenst requested a review from SlimaneAmar July 4, 2022 14:56
@@ -580,7 +580,6 @@ private CreatedStudyBasicInfos insertStudy(UUID studyUuid, String userId, Networ
return createdStudyBasicInfos;
}

@Transactional
public CreatedStudyBasicInfos insertDuplicatedStudy(BasicStudyInfos studyInfos, StudyEntity sourceStudy, LoadFlowParametersEntity newLoadFlowParameters, String userId, UUID clonedNetworkUuid) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

…eate

The hashset is copied in toDto other we get
"Found shared references to a collection org.hibernate.HibernateException"
during the clone

Signed-off-by: HARPER Jon <[email protected]>
@jonenst jonenst force-pushed the fixraceduplicate branch from 8437ebb to 647af4c Compare July 5, 2022 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants