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.

Environment

None

Activity

Show:
Andrei Ivanov
February 3, 2021, 12:33 AM

Using the maven-dependency-plugin, I still see jaxb-runtime as a direct compiledependency of hibernate-core, it’s not marked as optional

Shouldn’t that be gone as well with the jaxb-api?

Sanne Grinovero
February 3, 2021, 12:56 AM

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.

Fixed

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Minor