@Override public Annotation<O> getAnnotation(String type) { Annotation<O> ann = null; FieldSource<O> field = getField(); if (field != null) { ann = field.getAnnotation(type); } if (ann == null) { MethodSource<O> accessor = getAccessor(); if (accessor != null) { ann = accessor.getAnnotation(type); } } if (ann == null) { MethodSource<O> mutator = getMutator(); if (mutator != null) { ann = mutator.getAnnotation(type); } } return ann; }
@Override public Annotation<O> getAnnotation(String type) { Annotation<O> ann = null; FieldSource<O> field = getField(); if (field != null) { ann = field.getAnnotation(type); } if (ann == null) { MethodSource<O> accessor = getAccessor(); if (accessor != null) { ann = accessor.getAnnotation(type); } } if (ann == null) { MethodSource<O> mutator = getMutator(); if (mutator != null) { ann = mutator.getAnnotation(type); } } return ann; }
@Override public Annotation<O> getAnnotation(Class<? extends java.lang.annotation.Annotation> type) { Annotation<O> ann = null; FieldSource<O> field = getField(); if (field != null) { ann = field.getAnnotation(type); } if (ann == null) { MethodSource<O> accessor = getAccessor(); if (accessor != null) { ann = accessor.getAnnotation(type); } } if (ann == null) { MethodSource<O> mutator = getMutator(); if (mutator != null) { ann = mutator.getAnnotation(type); } } return ann; }
@Override public Annotation<O> getAnnotation(Class<? extends java.lang.annotation.Annotation> type) { Annotation<O> ann = null; FieldSource<O> field = getField(); if (field != null) { ann = field.getAnnotation(type); } if (ann == null) { MethodSource<O> accessor = getAccessor(); if (accessor != null) { ann = accessor.getAnnotation(type); } } if (ann == null) { MethodSource<O> mutator = getMutator(); if (mutator != null) { ann = mutator.getAnnotation(type); } } return ann; }
annotation = temp.getAnnotation(annotationClassName); } else { annotation = temp.getField("dummy").getAnnotation(annotationClassName);
AnnotationSource<JavaClassSource> oneToOne = field.getAnnotation(OneToOne.class); if (oneToOne.getStringValue("mappedBy") == null && oneToOne.getStringValue("cascade") == null)