Project

General

Profile

Actions

bug #8417

open

LazyInitializationException in TermDTO for media

Added by Patrick Plitzner over 4 years ago. Updated almost 3 years ago.

Status:
New
Priority:
New
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
normal
Found in Version:
Tags:

Description

Im TaxonRelationshipsDTOTest, der ein einfacher UnitTest ist kommt es zu Problemen wegen der media die neuerdings an Termen hängen können:

http://int.e-taxonomy.eu/jenkins/job/cdmlib-INTEGRATION/10388/eu.etaxonomy$cdmlib-services/testReport/eu.etaxonomy.cdm.api.service.dto/TaxonRelationshipsDTOTest/test/

Die LazyInitializationException

tritt hier in der TermDTO Klasse auf:

Collection<UUID> mediaUuids = new HashSet<>();

Set<Media> media = term.getMedia();

for (Media medium : media) {

   mediaUuids.add(medium.getUuid());

}

dto.setMedia(mediaUuids);

Terme sollten auch ohne Session komplett initialisiert sein ... also eager loading für die media?

Actions #1

Updated by Patrick Plitzner over 4 years ago

  • Description updated (diff)
Actions #2

Updated by Patrick Plitzner over 4 years ago

  • Target version changed from Release 5.9 to Release 5.10

not important for this release -> move to 5.10

Actions #3

Updated by Patrick Plitzner over 4 years ago

  • Target version changed from Release 5.10 to Release 5.11
Actions #4

Updated by Patrick Plitzner over 4 years ago

  • Target version changed from Release 5.11 to Release 5.12
Actions #5

Updated by Andreas Müller over 4 years ago

  • Assignee changed from Patrick Plitzner to Andreas Müller
Actions #6

Updated by Andreas Müller over 4 years ago

  • Target version changed from Release 5.12 to Release 5.13
Actions #7

Updated by Andreas Müller about 4 years ago

  • Target version changed from Release 5.13 to Release 5.14

This needs to be discussed. Eager Loading is generally very critical for 1:n relations as objects may be duplicated.

Better try to handle this via a general bean initializer rule like for caches.

Actions #8

Updated by Andreas Müller about 4 years ago

  • Target version changed from Release 5.14 to Release 5.15
Actions #9

Updated by Andreas Müller almost 4 years ago

  • Target version changed from Release 5.15 to Release 5.18
Actions #10

Updated by Andreas Müller over 3 years ago

  • Target version changed from Release 5.18 to Release 5.19
Actions #11

Updated by Andreas Müller about 3 years ago

  • Target version changed from Release 5.19 to Release 5.21
Actions #12

Updated by Andreas Müller about 3 years ago

  • Target version changed from Release 5.21 to Release 5.22
Actions #13

Updated by Andreas Müller about 3 years ago

  • Target version changed from Release 5.22 to Release 5.25
Actions #14

Updated by Andreas Müller almost 3 years ago

  • Tags set to additivity
Actions #15

Updated by Andreas Müller almost 3 years ago

  • Target version changed from Release 5.25 to Release 5.45
Actions

Also available in: Atom PDF