Revision d14dc600
Added by Andreas Kohlbecker over 11 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxon/TaxonDaoHibernateImpl.java | ||
---|---|---|
1336 | 1336 |
|
1337 | 1337 |
if(direction != null) { |
1338 | 1338 |
criteria.add(Restrictions.eq(direction.name(), taxon)); |
1339 |
} else { |
|
1340 |
criteria.add(Restrictions.or( |
|
1341 |
Restrictions.eq(Direction.relatedFrom.name(), taxon), |
|
1342 |
Restrictions.eq(Direction.relatedTo.name(), taxon)) |
|
1343 |
); |
|
1339 | 1344 |
} |
1340 | 1345 |
|
1341 | 1346 |
if(type != null) { |
Also available in: Unified diff
fixing bug in getTaxonRelationships() for case directions = null