문제

I use java and avaje ebean 2.8.1. I want do specific query for a method. For Example: select * from children where removed=false order by born_date

@Entity 
public class Client {
    @Id 
    private Long id; 

    @OneToMany 
    private List<Child> children; //this return all, include removed=true

    public List<Child>  getChildren(){
        return children;
    }
도움이 되었습니까?

해결책

Take a look at the @Where annotation, it's still valid in 2.8.x

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top