Revision bba2caf5
Added by Katja Luther almost 3 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/agent/AgentDaoImpl.java | ||
---|---|---|
217 | 217 |
String whereClause = " WHERE nomenclaturalTitleCache LIKE :pattern"; |
218 | 218 |
if (pattern.startsWith("*")){ |
219 | 219 |
whereClause += " OR titleCache LIKE :pattern"; |
220 |
whereClause += " OR collectorTitleCache LIKE :pattern"; |
|
220 | 221 |
} |
221 | 222 |
|
222 | 223 |
query = session.createQuery("SELECT DISTINCT uuid, id, nomenclaturalTitleCache, titleCache " + clazzString + whereClause); |
Also available in: Unified diff
ref #9680:adapt seach methods to search for collectortitlecache, also for nomenclatural author search if pattern starts with *