Package com.onec.ui

Class WriteValidator

java.lang.Object
com.onec.ui.WriteValidator

public class WriteValidator extends Object
Validates a generic catalog/document write before it persists. The generic controllers insert via JDBI (not a Spring Data repository), so the lifecycle BeforeConvertCallback — where entity validation otherwise runs — never fires for them. This re-applies the same checks against the submitted body: declarative @Attribute constraints, plus any BusinessRules run on a best-effort transient entity built from the body. Failures throw a field-mapped ValidationException (→ HTTP 422).