Revision 52c34f45
Added by Andreas Müller almost 8 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/agent/AgentDaoImpl.java | ||
---|---|---|
166 | 166 |
|
167 | 167 |
@Override |
168 | 168 |
public List<Person> getPersonsUsedAsUser(){ |
169 |
Query query = getSession().createQuery("select ab.uuid, ob.idInSource from AgentBase ab join OriginalSourceBase ob on ob.sourcedObj_id = ab.id where ob.idNamespace like 'User' and ob.sourcedObj_type like 'eu.etaxonomy.cdm.model.agent.Person'");
|
|
169 |
Query query = getSession().createQuery("SELECT ab.uuid, ob.idInSource FROM Person ab JOIN ab.sources ob WHERE ob.idNamespace LIKE 'User'");
|
|
170 | 170 |
List<Person> result = query.list(); |
171 | 171 |
return result; |
172 | 172 |
} |
Also available in: Unified diff
Remove bidirectionality for supplemental data #5743