Project

General

Profile

Revision a80bb20e

IDa80bb20e9da22230326d65598b4cf07ff1a5dff5
Parent 71bfbee0
Child 6478a5d8

Added by Katja Luther about 2 years ago

fix #1606: add generic type to all filters

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/reference/ReferenceDaoHibernateImpl.java
104 104
		if (refType != null || pattern != null){
105 105
		    queryString += " WHERE ";
106 106
		    if (refType != null && pattern != null){
107
		        queryString += "r.type = :type" ;
107
		        queryString += "r.type = :type OR r.type = :genericType" ;
108 108
		        queryString += " AND r.titleCache LIKE :pattern";
109 109
		    }
110 110
		}
......
129 129
	    }
130 130
		if (refType != null){
131 131
		    query.setParameter("type", refType);
132
		    query.setParameter("genericType", ReferenceType.Generic);
132 133
		}
133 134
		@SuppressWarnings("unchecked")
134 135
        List<Object[]> result = query.list();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)