Package org.vraptor.plugin.hibernate

Examples of org.vraptor.plugin.hibernate.Validate.fields()


                logger.warn("Method " + method.getName() + " from " + originalType.getName()
                        + " is annotated with @Logic. Although its supported, we suggest you to migrate to @Path.");
            }
            if (method.isAnnotationPresent(Validate.class)) {
                Validate validate = method.getAnnotation(Validate.class);
                if (validate.fields().length != 0) {
                    logger.error("Method " + method.getName() + " from " + originalType.getName()
                            + " is annotated with @Validate with fields. This is not supported.");
                }
            }
        }
View Full Code Here


    }

  private void checkValidate(Class<?> type, Method method) {
    if (method.isAnnotationPresent(Validate.class)) {
        Validate validate = method.getAnnotation(Validate.class);
        if (validate.fields().length != 0) {
            logger.error("Method " + method.getName() + " from " + type.getName()
                    + " is annotated with @Validate with fields. This is not supported.");
        }
    }
  }
View Full Code Here

                logger.warn("Method " + method.getName() + " from " + originalType.getName()
                        + " is annotated with @Logic. Although its supported, we suggest you to migrate to @Path.");
            }
            if (method.isAnnotationPresent(Validate.class)) {
                Validate validate = method.getAnnotation(Validate.class);
                if (validate.fields().length != 0) {
                    logger.error("Method " + method.getName() + " from " + originalType.getName()
                            + " is annotated with @Validate with fields. This is not supported.");
                }
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.