Make PredefinedScopeHibernateValidatorFactory aware of constraint mappings defined purely in XML

Description

If a constraint mapping XML defines all the constraint info, then PredefinedScopeHibernateValidatorFactory will miss this information as the classes defined in the XML are not passed in the HibernateSpecificConfig#getBeanClassesToInitialize().

Let’s add the classes present only in the XML to the list of bean classes to initialize.

This will also mean that the predefined list of enabled built-in constraints may need to be extended, as the predefined configuration does not yet know about all the XML metadata.

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Participants

Marko Bekhta

Components

Fix versions

Priority

Created August 21, 2024 at 4:16 PM
Updated September 4, 2024 at 4:24 PM
Resolved September 3, 2024 at 6:55 PM