@@ -18,9 +18,11 @@ public class MySQLGetAllNames extends MySQLTransaction implements GetAllNamesImp
super(access);
}
// TODO
publicstaticfinalStringSTMT_GET_ALL_NAMES=
"Select e.name as EntityName, e.role as EntityRole, a.acl as ACL FROM entities as e JOIN entity_acl as a ON (a.id=e.acl) WHERE e.name IS NOT NULL and e.role!='ROLE'";
"SELECT d.value as EntityName, e.role AS EntityRole, a.acl AS ACL "
+"FROM name_data AS d JOIN entities AS e JOIN entity_acl AS a "
+"ON (d.domain_id = 0 AND d.property_id = 20 AND d.entity_id = e.id AND a.id = e.acl) "
+"WHERE e.role != 'ROLE' AND e.role != 'DATATYPE'";