As @sudhir mentioned, there are several methods in aclService that use the hql executeQuery method, for example:
protected AclObjectIdentity retrieveObjectIdentity(ObjectIdentity oid) { return AclObjectIdentity.executeQuery( "FROM AclObjectIdentity " + "WHERE aclClass.className = :className " + " AND objectId = :objectId", [className: oid.type, objectId: oid.identifier])[0] }
But the mongodb gorm plugin does not support hql, so the calling path where your code gets into the hql error is similar:
aclUtilService.addPermission → aclService.createAcl → retrieveObjectIdentity
And two more aclService methods using hql:
deleteEntries, findChildren
So, a simple solution for this is to save the ACL objects in mysql and enable hibernation working with gormon mongodb .
An alias must override these 3 aclService methods with metaprograms .
source share