FactoryCQ - Eliminate frequent calls to namespace get query
Remove unused join
@@ -105,10 +105,6 @@ public class UserNamespaceAuthorizationDaoImpl extends AbstractHerdDao implement
// The criteria root is the user namespace authorization.
Root<UserNamespaceAuthorizationEntity> userNamespaceAuthorizationEntity = criteria.from(UserNamespaceAuthorizationEntity.class);
- // Join to the other tables we can filter on.
- Join<UserNamespaceAuthorizationEntity, NamespaceEntity> namespaceEntity =
- userNamespaceAuthorizationEntity.join(UserNamespaceAuthorizationEntity_.namespace);
-
// Create the standard restrictions (i.e. the standard where clauses).
Predicate queryRestriction =
builder.equal(builder.upper(userNamespaceAuthorizationEntity.get(UserNamespaceAuthorizationEntity_.userId)), userId.toUpperCase());
