Skip to content
Snippets Groups Projects
Verified Commit 902b0648 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

refactor MySQLGetAllNames.java

parent 0aa9091e
Branches
Tags
No related merge requests found
......@@ -18,9 +18,11 @@ public class MySQLGetAllNames extends MySQLTransaction implements GetAllNamesImp
super(access);
}
// TODO
public static final String STMT_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'";
@Override
public List<SparseEntity> execute() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment