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}interface AdditionalMappingContributor { void contributeMappings( MappingContributions contributions, IndexView jandexIndex, MappingBinder jaxbBinder, MetadataBuildingContext buildingContext); }
interface MappingContributions { void contribute(Binding<?> jaxbBinding); void contribute(PersistentClass entity); voide contribute(Table table); ... }{noformat} |
|