JPA one-to-many filtering
Another hibernate way of doing it with @Where: @Entity public class System { @Id @Column(name = “ID”) private Integer id; @OneToMany(mappedBy = “system”) @Where(clause = “active = true”) private Set<Systemproperty> systempropertys; } @Entity public class Systemproperty { @Id @Column(name = “ID”) private Integer id; @Id @Column(name = “ACTIVE”) private Integer active; }