Per the subject, develop an XSD that allows mixing JPA orm.xml elements and Hibernate-specific features. It is important that this "unified" XSD be able to validate spec-compliant mapping documents (aside from considerations listed below).
In my limited understanding, there seems to be 2 approaches:
1) Use the XSD extends feature 2) Develop the Hibernate namespace completely separately (the mapping XML would mix namespaces).
(2) allows for easier portability between providers iiuc because the xml would not refer to the (extended) Hibernate XSD as the root. But I am not sure how this applies validation across the combined namesapces (since they interleave).
|