1 Reply Latest reply on Oct 24, 2006 6:55 AM by Gavin King

    Annotation fail for nested methods calls

    Sandeep Ghosh Newbie

      Just to explain in a hypothetical sense, if a bean has an @Create method and it in turn calls a method to fetch the date filed which has an @Future annotation, then the validation of date being a future date is omitted.


      @Create
      public void doInit(){
      
       if (getDueDate()){
      
       }
      
      }
      
      
      @Future
      @NotNull
      public Date getDueDate() {
       return dueDate;
      }