Revision 1d6d9f08
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/service/RegistrationWorkingSetService.java | ||
---|---|---|
63 | 63 |
"typeDesignations.citation.authorship.$", |
64 | 64 |
// name |
65 | 65 |
"name.$", |
66 |
"name.nomenclaturalReference.authorship", |
|
66 |
"name.nomenclaturalReference.authorship.$",
|
|
67 | 67 |
"name.nomenclaturalReference.inReference", |
68 | 68 |
"name.rank", |
69 | 69 |
"name.homotypicalGroup.typifiedNames", |
... | ... | |
186 | 186 |
public RegistrationWorkingSet loadWorkingSetByReferenceID(Integer referenceID) throws RegistrationValidationException { |
187 | 187 |
|
188 | 188 |
Reference reference = repo.getReferenceService().find(referenceID); |
189 |
repo.getReferenceService().load(reference.getUuid()); // needed to avoid the problem described in #7331 |
|
190 |
|
|
189 | 191 |
Pager<Registration> pager = repo.getRegistrationService().page(Optional.of(reference), null, null, null, REGISTRATION_INIT_STRATEGY); |
192 |
|
|
193 |
/* for debugging https://dev.e-taxonomy.eu/redmine/issues/7331 |
|
194 |
for(Registration reg : pager.getRecords()){ |
|
195 |
if(reg.getName() != null && reg.getName().getNomenclaturalReference().getAuthorship() != null){ |
|
196 |
Reference ref = (Reference) reg.getName().getNomenclaturalReference(); |
|
197 |
if(!Hibernate.isInitialized(ref.getAuthorship())){ |
|
198 |
logger.error("UNINITIALIZED"); |
|
199 |
} |
|
200 |
} else { |
|
201 |
logger.debug("NO AUTHORS"); |
|
202 |
} |
|
203 |
} |
|
204 |
*/ |
|
190 | 205 |
return new RegistrationWorkingSet(makeDTOs(pager.getRecords())); |
191 | 206 |
} |
192 | 207 |
|
Also available in: Unified diff
ref #7331 cicrumventing the bug for RegistrationWorkingSetService.loadWorkingSetByReferenceID()