Fixed
Details
Assignee
Marko BekhtaMarko BekhtaReporter
xiaodjanxiaodjanLabels
Bug Testcase Reminder (view)
Bug reports should generally be accompanied by a test case!
Bug Testcase Reminder (edit)
Bug reports should generally be accompanied by a test case!
Participants
Marko BekhtaxiaodjanComponents
Fix versions
Affects versions
Priority
Minor
Details
Details
Assignee
Marko Bekhta
Marko BekhtaReporter
xiaodjan
xiaodjanLabels
Bug Testcase Reminder (view)
Bug reports should generally be accompanied by a test case!
Bug Testcase Reminder (edit)
Bug reports should generally be accompanied by a test case!
Participants
Marko Bekhta
xiaodjan
Components
Fix versions
Affects versions
Priority
Created January 2, 2025 at 10:03 AM
Updated January 17, 2025 at 4:33 PM
Resolved January 17, 2025 at 4:33 PM
When using Hibernate Validator's Programmatic Constraint Definition
, the custom
PropertyNodeNameProvider
does not work as expected. Instead, the defaultdefaultPropertyNodeNameProvider
is always used during constraint creation, making it impossible to customize property name resolution for constraint violations.Upon reviewing the source code, it is observed that the method
ConstraintMapping.createConstraintMapping()
directly passes thedefaultPropertyNodeNameProvider
toJavaBeanHelper
while creating theDefaultConstraintMapping
. This behavior ignores customPropertyNodeNameProvider