Revision 9fb87bef
Added by Katja Luther almost 2 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/description/DescriptiveDataSetDao.java | ||
---|---|---|
202 | 202 |
|
203 | 203 |
private List<UUID> getNodeUuidsForDescriptiveDataSet(UUID uuid) { |
204 | 204 |
Session session = getSession(); |
205 |
|
|
205 |
|
|
206 | 206 |
String queryString = "SELECT t.uuid FROM DescriptiveDataSet a JOIN a.taxonSubtreeFilter as t WHERE a.uuid = :uuid"; |
207 | 207 |
Query<UUID> query = session.createQuery(queryString, UUID.class); |
208 | 208 |
query.setParameter("uuid", uuid); |
... | ... | |
260 | 260 |
} |
261 | 261 |
//get taxon nodes |
262 | 262 |
List<UUID> nodeUuids = getNodeUuidsForDescriptiveDataSet(uuid); |
263 |
List<TaxonNodeDto> nodeDtos = nodeDao.getTaxonNodeDtos(nodeUuids); |
|
263 |
List<TaxonNodeDto> nodeDtos = nodeDao.getTaxonNodeDtosWithoutParent(nodeUuids);
|
|
264 | 264 |
Set<TaxonNodeDto> nodeSet = new HashSet<>(nodeDtos); |
265 | 265 |
dto.setSubTreeFilter(nodeSet); |
266 | 266 |
|
Also available in: Unified diff
ref #10076: fix taxonnodeDto creation for nodes without taxon and parent