Class QuarkusMappingFileParser

  • All Implemented Interfaces:
    AutoCloseable

    public final class QuarkusMappingFileParser
    extends Object
    implements AutoCloseable
    A parser for orm.xml mapping files.
    • Constructor Detail

      • QuarkusMappingFileParser

        public QuarkusMappingFileParser​(org.hibernate.boot.registry.BootstrapServiceRegistry serviceRegistry,
                                        org.hibernate.boot.spi.XmlMappingBinderAccess binderAccess)
    • Method Detail

      • parse

        public Optional<RecordableXmlMapping> parse​(String persistenceUnitName,
                                                    URL persistenceUnitRootUrl,
                                                    String mappingFilePath)
        Parameters:
        persistenceUnitName - The name of the persistence unit requesting the mapping file.
        persistenceUnitRootUrl - The root URL of the persistence unit requesting the mapping file.
        mappingFilePath - The path of the mapping file in the classpath.
        Returns:
        A summary of the parsed mapping file, or Optional.empty() if it was not found.