Class QuarkusMappingFileParser

java.lang.Object
io.quarkus.hibernate.orm.deployment.xml.QuarkusMappingFileParser
All Implemented Interfaces:
AutoCloseable

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

    • QuarkusMappingFileParser

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

    • create

      public static QuarkusMappingFileParser create()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • 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.