Class EntityToPersistenceUnitUtil

java.lang.Object
io.quarkus.hibernate.panache.deployment.EntityToPersistenceUnitUtil

public final class EntityToPersistenceUnitUtil extends Object
  • Method Details

    • determineEntityPersistenceUnits

      public static void determineEntityPersistenceUnits(Optional<io.quarkus.hibernate.orm.deployment.JpaModelPersistenceUnitMappingBuildItem> jpaModelPersistenceUnitMapping, List<io.quarkus.hibernate.orm.deployment.PersistenceUnitDescriptorBuildItem> descriptors, Set<String> candidates, String source, EntityToPersistenceUnitUtil.TriConsumer consumer)
      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