|
+1 For having this specific contract which just exposes what you need from it.
What's your motivation to design it independently from MetadataBuildingOptions? If that's the only "thing" supporting that contract, I would design the new contract as a specialization in the form of interface JpaOrmXmlPersistenceUnitDefaultAwareMetadataBuildingOptions extends MetadataBuildingOptions.
|