use of javax.persistence.PersistenceUnits in project Payara by payara.
the class EntityManagerFactoryReferencesHandler method processAnnotation.
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException {
PersistenceUnits annotation = (PersistenceUnits) ainfo.getAnnotation();
PersistenceUnit[] emfRefAnnotations = annotation.value();
List<HandlerProcessingResult> results = new ArrayList<>();
for (PersistenceUnit emfRef : emfRefAnnotations) {
results.add(processEmfRef(ainfo, rcContexts, emfRef));
}
return getOverallProcessingResult(results);
}
Aggregations