Code example for AnnotatedElement

Methods: isAnnotationPresent

0
	} 
 
	private <A> boolean verifyArguments(A annotation,
			AnnotatedElement target) {
		if (!(annotation instanceof SequenceGenerator)
				|| (!target.isAnnotationPresent(SequenceGenerator.class))
				|| (!target.isAnnotationPresent(Entity.class))) {
 
			return false; 
		} 
		return true; 
 
	} 
 
	private <A> boolean processGeneratorDefinition(A annotation) {
		SequenceGenerator sequenceGenerator = (SequenceGenerator) annotation;
 
		JPAKeyGeneratorManager manager = JPAKeyGeneratorManager
				.getInstance(); 
 
		JPASequenceGeneratorDescriptor descriptor = JPASequenceGeneratorDescriptor.extract(sequenceGenerator);