Set where clause on field
问题 I have a base entity that holds a enum field called State. public enum State { DELETED(0), ACTIVE(1) ; private int value; private State(int value) { this.value = value; } public int getValue() { return this.value; } } Is there a JPA annotated way to set the where clauses of the generated queries to retrieve only entities that the state field is "ACTIVE"? The reason is that if i have an entity "A" that holds a list of entities "B", when i retrieve from the DB an instance of "A" and initialize