This commit is contained in:
Peter Hormanns 2019-06-18 18:44:00 +02:00
parent 97bfe29c61
commit 90d7030c6a
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
final Query domsQuery = em.createQuery("SELECT d FROM Domains d WHERE d.user.pac.hive.name = :hivename"); final Query domsQuery = em.createQuery("SELECT d FROM Domains d WHERE d.user.pac.hive.name = :hivename");
domsQuery.setParameter("hivename", hiveName); domsQuery.setParameter("hivename", hiveName);
final List<?> domsList = domsQuery.getResultList(); final List<?> domsList = domsQuery.getResultList();
final Set<String> domsNames = new HashSet<>(); final Set<String> domsNames = new HashSet<String>();
for (final Object obj : domsList) { for (final Object obj : domsList) {
if (obj instanceof Domain) { if (obj instanceof Domain) {
domsNames.add(((Domain) obj).getName()); domsNames.add(((Domain) obj).getName());

View File

@ -150,7 +150,7 @@ public class PacProcessorFactory implements EntityProcessorFactory {
final Query domsQuery = em.createQuery("SELECT d FROM Domains d WHERE d.user.pac.hive.name = :hivename"); final Query domsQuery = em.createQuery("SELECT d FROM Domains d WHERE d.user.pac.hive.name = :hivename");
domsQuery.setParameter("hivename", hiveName); domsQuery.setParameter("hivename", hiveName);
final List<?> domsList = domsQuery.getResultList(); final List<?> domsList = domsQuery.getResultList();
final Set<String> domsNames = new HashSet<>(); final Set<String> domsNames = new HashSet<String>();
for (final Object obj : domsList) { for (final Object obj : domsList) {
if (obj instanceof Domain) { if (obj instanceof Domain) {
domsNames.add(((Domain) obj).getName()); domsNames.add(((Domain) obj).getName());