code: @Override
      public boolean validate(Field f) throws RuleValidationException
      {
  
          boolean checkvalidation = true;
          for (Annotation annotate : f.getDeclaredAnnotations())
          {
              RelationType eruleType = getRuleType(annotate.annotationType().getSimpleName());
  
              if (eruleType != null)
              {
  
                  switch (eruleType)
                  {
                  case MANY_TO_MANY:
                      checkvalidation = validateManyToMany(f, annotate);
                      break;
                  case MANY_TO_ONE:
                      checkvalidation = validateManyToOne(f, annotate);
                      break;
                  case ONE_TO_MANY:
                      checkvalidation = validateOneToMany(f, annotate);
                      break;
                  case ONE_TO_ONE:
                      checkvalidation = validateOneToOne(f, annotate);
                      break;
  
                  }
  
              }
          }
  
          return checkvalidation;
      }
docs: /* (non-Javadoc)
  @see com.impetus.kundera.validation.rules.AbstractFieldRule#validate(java.lang.reflect.Field)