Project

General

Profile

bug #8160

bug #8075: multiple cascase all-delete-orphan exceptions related to DefinedTermBase.representations

CdmBeanItemContainerFactory as readonly service bean

Added by Andreas Kohlbecker 9 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Highest
Category:
cdm-vaadin
Target version:
Start date:
03/04/2019
Due date:
% Done:

100%

Severity:
critical
Found in Version:
Tags:

Description

Turning the CdmBeanItemContainerFactory into a readonly service bean should solve the cascade="all-delete-orphan" problems mentioned in #8075


Related issues

Related to Edit - bug #7106: avoid factory.openSession() in CdmRepository Closed 12/04/2017
Duplicated by Edit - bug #8065: HibernateException: corrupt session problem breaks SpecimenTypeDesignationworkingsetEditor type designation table Closed 02/05/2019
Duplicated by Edit - bug #8158: cascade="all-delete-orphan" problem when .... Closed 03/01/2019

Associated revisions

Revision f4f3c705 (diff)
Added by Andreas Kohlbecker 9 months ago

ref #8160 CdmBeanItemContainerFactory as service bean to load entities only in readyOnly transactions to avoid unintendet flushing

Revision 09c85ccb (diff)
Added by Andreas Kohlbecker 9 months ago

ref #8160 CdmBeanItemContainerFactory @Transactional only where needed and clearing session before each service call

History

#1 Updated by Andreas Kohlbecker 9 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50

#2 Updated by Andreas Kohlbecker 9 months ago

  • Duplicated by bug #8065: HibernateException: corrupt session problem breaks SpecimenTypeDesignationworkingsetEditor type designation table added

#3 Updated by Andreas Kohlbecker 9 months ago

  • Duplicated by bug #8158: cascade="all-delete-orphan" problem when .... added

#4 Updated by Andreas Kohlbecker 9 months ago

  • Related to bug #7106: avoid factory.openSession() in CdmRepository added

#5 Updated by Andreas Kohlbecker 7 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 50 to 100

The implementation works as expected and the cascade="all-delete-orphan" problems did not occur again

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)