Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiM2Q1MTBlYWMy...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16006?atlOrigin=eyJpIjoiM2Q1MT...
) HHH-16006 (
https://hibernate.atlassian.net/browse/HHH-16006?atlOrigin=eyJpIjoiM2Q1MT...
) Implement an "additional mapping" contributor SPI (
https://hibernate.atlassian.net/browse/HHH-16006?atlOrigin=eyJpIjoiM2Q1MT...
)
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 - e. g. direct {{PersistentClass}}, {{Table}}, etc. references from
{{org.hibernate.mapping}}
Initial proposal -
{ noformat code:java }interface AdditionalMappingContributor {
void contributeMappings(
MappingContributions AdditionalMappingContributions contributions,
IndexView jandexIndex InFlightMetadataCollector metadata ,
MappingBinder jaxbBinder ResourceStreamLocator resourceStreamLocator ,
MetadataBuildingContext buildingContext);
}
interface MappingContributions {
void contribute contributeEntity ( Binding Class <?> jaxbBinding entityType );
void contribute contributeBinding ( PersistentClass entity InputStream xmlStream );
voide contribute 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 } {noformat } 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 )