Search in sources :

Example 1 with PersistenceUnits

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);
}
Also used : PersistenceUnit(javax.persistence.PersistenceUnit) HandlerProcessingResult(org.glassfish.apf.HandlerProcessingResult) ArrayList(java.util.ArrayList) PersistenceUnits(javax.persistence.PersistenceUnits)

Aggregations

ArrayList (java.util.ArrayList)1 PersistenceUnit (javax.persistence.PersistenceUnit)1 PersistenceUnits (javax.persistence.PersistenceUnits)1 HandlerProcessingResult (org.glassfish.apf.HandlerProcessingResult)1