[jboss-user] [JBoss Seam] - Re: entity-query / restrictions

petemuir do-not-reply at jboss.com
Fri Apr 20 17:28:39 EDT 2007


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()

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039429#4039429

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039429



More information about the jboss-user mailing list