Query.not(Query.arrayMatch("jobExecutions", Query.and(Query.withValue("status", Query.eq, MigrationJob.STATE_COMPLETED), Query.withValue("actualEndDate", Query.gt, new Literal(cleanupBefore))))));
Query.not(Query.arrayMatch("jobExecutions", Query.and(Query.withValue("status", Query.eq, MigrationJob.STATE_COMPLETED), Query.withValue("actualEndDate", Query.gt, new Literal(cleanupBefore))))));