Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMDhiY2U2NmU0...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16006?atlOrigin=eyJpIjoiMDhiY2...
) HHH-16006 (
https://hibernate.atlassian.net/browse/HHH-16006?atlOrigin=eyJpIjoiMDhiY2...
) Implement an "additional mapping" contributor SPI (
https://hibernate.atlassian.net/browse/HHH-16006?atlOrigin=eyJpIjoiMDhiY2...
)
Change By: Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Implement an "additional mapping" contributor SPI. Basically what
{{AdditionalJaxbMappingProducer}} is today, but allowing additional mechanisms of
contribution.
{code:java}interface AdditionalMappingContributor {
void contributeMappings(
AdditionalMappingContributions contributions,
InFlightMetadataCollector metadata,
ResourceStreamLocator resourceStreamLocator,
MetadataBuildingContext buildingContext);
}
interface MappingContributions AdditionalMappingContributions {
void contributeEntity(Class<?> entityType);
void contributeBinding(InputStream xmlStream);
void contributeBinding(JaxbEntityMappings mappingJaxbBinding);
void contributeBinding(JaxbHbmHibernateMapping hbmJaxbBinding);
void contributeTable(Table table);
void contributeSequence(Sequence sequence);
void contributeAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject);
}{code}
Ultimately will support contributing {{org.hibernate.mapping.PersistentClass}} references
as well, though the exact semantics of that need to be worked out. E.g. what all gets
auto-handled? Table? Secondary tables? etc
(
https://hibernate.atlassian.net/browse/HHH-16006#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16006#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100214- sha1:5a2a1e8 )