310311312313314315316317318319320
// determine max length int maxlen = -1; final Length aLength = m.getAnnotation(Length.class); if(aLength != null) { maxlen = aLength.max(); } else { // try Size anno final Size aSize = m.getAnnotation(Size.class); if(aSize != null) {
291292293294295296297298299300301
188189190191192193194195196197198
public int getMaxLength(final String propertyName){ final Length maxLength = getPropertyLengthAnnotation(propertyName); return maxLength == null ? -1 : maxLength.max(); } public void setWrappedInstanceClass(Class<T> wrappedInstanceClass){