Just use `.where(queueRoot.get(Queue_.active))` here. You are now doing the equivalent of `if (bool == true)`