Project

General

Profile

« Previous | Next » 

Revision 67118ad4

Added by Katja Luther over 5 years ago

remove generic references from result for inReference selection

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/reference/ReferenceDaoHibernateImpl.java
130 130
		if (refType != null || pattern != null){
131 131
		    queryString += " WHERE (1=1) ";
132 132
		    if (refType != null ){
133
		        queryString += " AND (r.type = :type OR r.type = :genericType) " ;
133
		        queryString += " AND (r.type = :type) ";// OR r.type = :genericType) " ;
134 134
		    }
135 135
		    if (pattern != null){
136 136
		        queryString += " AND (r.titleCache LIKE :pattern) ";
......
155 155
	    }
156 156
		if (refType != null){
157 157
		    query.setParameter("type", refType);
158
		    query.setParameter("genericType", ReferenceType.Generic);
158
		   // query.setParameter("genericType", ReferenceType.Generic);
159 159
		}
160 160
		@SuppressWarnings("unchecked")
161 161
        List<Object[]> result = query.list();

Also available in: Unified diff