Just like in hibernate, in EclipseLink we have the annotation @AdditionalCriteria that allow us to add a filter on our data. In hibernate it as @Filter and you can either add it on top a a class or on a field like this.
@Filter(name="test", condition=":deleted is null")
public class MyClass { ... }
or
@Filter(name="test", condition=":deleted is null")
private List<MyClass> list;
In EclipseLink the @AdditionalCriteria only works for the first on, on a class. Is there any other annotation that works like the second one, on a field?
Thanks