Actually we cannot do that currently, because we rely on AdditionalJaxbMappingProducer to pass the resulting mapping to Hibernate ORM (that’s our only solution right now), and that interface forces us to return a MappingDocument, which is necessarily a hbm.xml mapping. So while we can produce an orm.xml mapping in AdditionalJaxbMappingProducer, we cannot pass it to Hibernate ORM. We’re stuck until AdditionalJaxbMappingProducer evolves or gets a replacement. |