Class EntityToPersistenceUnitUtil


  • public final class EntityToPersistenceUnitUtil
    extends Object
    • Method Detail

      • determineEntityPersistenceUnits

        public static Map<String,​String> determineEntityPersistenceUnits​(Optional<io.quarkus.hibernate.orm.deployment.JpaModelPersistenceUnitMappingBuildItem> jpaModelPersistenceUnitMapping,
                                                                               Set<String> candidates,
                                                                               String source)
        Given the candidate entities, return a map with the persistence unit that single contains them or throw an exception if any of the candidates is part of more than one persistence unit