This content has been marked as final.
Show 1 reply
-
1. Re: entity-query / restrictions
pmuir Apr 20, 2007 5:28 PM (in response to denpet)I would do this using your example object
public class ExampleFoo extends Foo { private boolean showClosedObject; // getters and setters public Date getDate() { if (showClosedObject) { return super.getDate(); } else { return null; } }
then, your restriction will only be applied if your checkbox is checked. The restriction could just be closedDate < Now()