| See this forum post for another request on this very subject: https://discourse.hibernate.org/t/override-property-field-names-in-error-messages/766/7 . I think I would go for a contract such as PropertyPathNodeNameProvider that would allow to customize all the names used in the property path e.g. <return value with getReturnValueNodeName() (and same for the others). It would also allow to return a property name with a method such as getPropertyNodeName(Member member). (Thinking out loud, hoping it will help the OP of the message) This contract would be passed at VF initialization and used throughout the code. |