Hibernate does not trim whitespaces from certain values when reading orm.xml

Description

We use orm.xml mapping of our DB entities. Sometimes, when using certain type of parameter, such as class name, and expanding the value to multiple lines (due to code formatting), Hibernate throws ClassNotFoundException.

This code does not work:

This code, however, works:

Hibernate should ignore whitespaces in such parameter values.

Environment

Windows 8.1, Java 8, Spring boot 1.4.0.M2

Assignee

Unassigned

Reporter

whitewashN

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure