未被另一个实体引用的实体

Entities not referenced by another entity

在以下关系中,我想找到 B 未引用的实体 A 的实例。

@Entity
public class A {
}

@Entity
public class B {
    @OneToOne(fetch = FetchType.LAZY)
    @NotFound(action = NotFoundAction.IGNORE)
    @JoinColumn(name = "a_id")
    private A a;
}

如何为此编写 JPQL 查询?

w=12=st w=15=剪辑:w=13=sh w=10=sh w=15=shw=17=sh:sh=13=sh w=11=sh