Project

General

Profile

« Previous | Next » 

Revision 9d8532ab

Added by Andreas Müller about 9 years ago

add taxonNode to session in countByIdentifier

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxon/TaxonDaoHibernateImpl.java
2176 2176
		
2177 2177
		boolean isTaxon = clazzParam == Taxon.class || clazzParam == TaxonBase.class;
2178 2178
		boolean isSynonym = clazzParam == Synonym.class || clazzParam == TaxonBase.class;
2179
		getSession().update(subtreeFilter);  //to avoid LIE when retrieving treeindex
2179 2180
		String filterStr = "'" + subtreeFilter.treeIndex() + "%%'";
2180 2181
		String accTreeJoin = isTaxon? " LEFT JOIN c.taxonNodes tn  " : "";
2181 2182
		String synTreeJoin = isSynonym ? " LEFT JOIN c.synonymRelations sr LEFT  JOIN sr.relatedTo as acc LEFT JOIN acc.taxonNodes synTn  " : "";

Also available in: Unified diff