Introduce a configuration flag to skip processing of XML mapping metadata
Description
I'd like to introduce a AvailableSettings.XML_MAPPING_ENABLED configuration property which - when disabled skips processing all XML mapping.
Using annotations is a popular solution nowadays, and having the option to looking for any XML mapping has a good impact on bootstrap times.
Activity
Show:
Sanne GrinoveroFebruary 2, 2021 at 1:56 PM
Good point maybe they can be marked optional now. I’m not entirely sure and this will need a bit more testing, and the matter gets a bit more complicated because of them being included in JDK8, while required in JDK11, so depending on JDK version one might have different dependency needs (Assuming the use XML mapping).
But please open a new issue, we can explore this.
Andrei IvanovFebruary 2, 2021 at 1:33 PM
Using the maven-dependency-plugin, I still see jaxb-runtime as a direct compiledependency of hibernate-core, it’s not marked as optional
I'd like to introduce a
AvailableSettings.XML_MAPPING_ENABLED
configuration property which - when disabled skips processing all XML mapping.Using annotations is a popular solution nowadays, and having the option to looking for any XML mapping has a good impact on bootstrap times.