I have two entity
class EntityOne{
@OneToOne
@Where(???????????????)
private EntityOneStatusTracker status;
}
class EntityOneStatusTracker{
private Long id;
private Date date;
@ManyToOne
private EntityOne entityOne;
}
I want Entity One to reference only the last recent record of the entity two using where clause, is this possible?