java 6
This commit is contained in:
parent
97bfe29c61
commit
90d7030c6a
@ -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());
|
||||||
|
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user