Add validation module: Bean Validation on Spring Boot 4.2.0 with Hibernate Validator 9.1.6, built-in and custom constraints, groups, method validation, ProblemDetail errors, message i18n, JPA integration and tests, with real transcripts

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4RzcCS5JCAgcxLz7T
This commit is contained in:
Claude
2026-12-05 16:18:03 +05:30
parent a95f042051
commit 417903fbc2
78 changed files with 2279 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
== generated columns of ACCOUNT (H2 information_schema)
AGE INTEGER length=null nullable=NO
ID BIGINT length=null nullable=NO
USERNAME CHARACTER VARYING length=50 nullable=NO
== check constraints on ACCOUNT
"AGE" >= 18
== persist(new Account(null, 15))
jakarta.persistence.RollbackException
age: must be greater than or equal to 18
username: must not be null
rows in ACCOUNT: 0
== load, setAge(10), commit (no save or merge call)
jakarta.persistence.RollbackException
age: must be greater than or equal to 18
== validate a loaded entity whose lazy List<@Valid Note> is untouched
notes initialised before: false
(no violations)
notes initialised after: false