我有两个实体
class EntityOne{
@OneToOne
@Where(???????????????)
private EntityOneStatusTracker status;
}
class EntityOneStatusTracker{
private Long id;
private Date date;
@ManyToOne
private EntityOne entityOne;
}
我希望实体1使用where子句仅引用实体2的最新记录,这可能吗?