Package persist.lint.jakarta
Class JakartaNamedObjectParserFactory
java.lang.Object
persist.jakarta.spi.JakartaPersistenceServiceProvider
persist.lint.jakarta.JakartaPersistenceLinterFactory
persist.lint.jakarta.JakartaNamedObjectParserFactory
- All Implemented Interfaces:
PersistenceServiceProvider,NamedObjectParserFactory,PersistenceLinterFactory
public class JakartaNamedObjectParserFactory
extends JakartaPersistenceLinterFactory
implements NamedObjectParserFactory
NamedObjectParserFactory implementation for the Jakarta Persistence
namespace ("jakarta").
This factory is registered as a ServiceLoader
provider and creates JakartaNamedObjectParser instances backed by
Hibernate ORM 6.
- Since:
- 2.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newJakartaNamedObjectParserFactory. -
Method Summary
Modifier and TypeMethodDescriptionnewNamedObjectParser(List<String> discoveredClassNames) Creates a newNamedObjectParserconfigured with the given entity class names.Methods inherited from class persist.jakarta.spi.JakartaPersistenceServiceProvider
getSupportedNamespaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface persist.lint.api.spi.PersistenceLinterFactory
getSupportedNamespace
-
Constructor Details
-
JakartaNamedObjectParserFactory
public JakartaNamedObjectParserFactory()Creates a newJakartaNamedObjectParserFactory.
-
-
Method Details
-
newNamedObjectParser
Creates a newNamedObjectParserconfigured with the given entity class names.- Specified by:
newNamedObjectParserin interfaceNamedObjectParserFactory- Parameters:
discoveredClassNames- fully qualified class names of the JPA entities to register in the metamodel- Returns:
- a ready-to-use named object parser; the caller is responsible for closing it (preferably via try-with-resources)
-