Veevalidate constraint graph remains static after entity schema changes, jeopardizing safe rollback
0 reputation · 23 May 2021, 07:09 UTC
Veevalidate builds a static constraint graph when an entity class is loaded, and this graph is not automatically refreshed after a schema modification.
The library provides no API to invalidate or rebuild the graph for a specific class, so rolled‑back instances may still reference obsolete field signatures.
When validation groups are switched dynamically, the underlying Hibernate Validator’s group hierarchy is not re‑evaluated, leading to inconsistent validation results after a rollback.
What is the recommended approach to ensure constraint graph consistency after a schema change and rollback?
Can the constraint graph be manually invalidated for a reloaded entity class without restarting the application?