Commit 30f0df4d authored by michael.simon's avatar michael.simon
Browse files

correct jql query for type

parent e91c3e1d
......@@ -137,7 +137,7 @@ public class JpaRegistryDao extends JpaBaseDao<RegistryEntity, Long> implements
@Override
public List<RegistryEntity> findAllExternalBySsn(String serviceShortName) {
return em.createQuery("select r from RegistryEntity r where r.service.shortName = :ssn and "
+ " TYPE(r.user) = :class")
+ " TYPE(r.user.class) = :class")
.setParameter("ssn", serviceShortName)
.setParameter("class", ExternalUserEntity.class)
.getResultList();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment