public interface DomainModelDescriptor
| Modifier and Type | Method and Description |
|---|---|
void |
applyDomainModel(org.hibernate.boot.MetadataSources sources)
Apply the model classes to the given MetadataSources
|
Class[] |
getAnnotatedClasses() |
default EnumSet<MappingFeature> |
getMappingFeaturesUsed()
Identifies the specific mapping features this domain model uses.
|
default String |
getNamespace()
The namespace to apply the model to.
|
Class[] getAnnotatedClasses()
void applyDomainModel(org.hibernate.boot.MetadataSources sources)
default String getNamespace()
Dialect. Would require a new Dialect method I think, though
we could also leverage the driver's db-metadata to ascertain which interpretation
to use which would not need any (more) test-specific Dialect feature.
Note however that this might be a useful feature as well for users instead of
JPA's Table.catalog() / Table.schema().
AKA, something like `@org.hibernate.annotations.Namespace("a_name")` or
`@org.hibernate.annotations.Table( namespace="a_name", ... )`.
This may be null indicating that the default namespace should be used.
Note that domain models can use the same namespace so long as they do not share
db-object (tables, etc) namesdefault EnumSet<MappingFeature> getMappingFeaturesUsed()
Copyright © 2001-2024 Red Hat, Inc. All Rights Reserved.