Class QuarkusMappingFileParser
java.lang.Object
io.quarkus.hibernate.orm.deployment.xml.QuarkusMappingFileParser
- All Implemented Interfaces:
AutoCloseable
A parser for orm.xml mapping files.
-
Constructor Summary
ConstructorsConstructorDescriptionQuarkusMappingFileParser(org.hibernate.boot.registry.BootstrapServiceRegistry serviceRegistry, org.hibernate.boot.spi.XmlMappingBinderAccess binderAccess) -
Method Summary
-
Constructor Details
-
QuarkusMappingFileParser
public QuarkusMappingFileParser(org.hibernate.boot.registry.BootstrapServiceRegistry serviceRegistry, org.hibernate.boot.spi.XmlMappingBinderAccess binderAccess)
-
-
Method Details
-
create
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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.
-