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:
@@ -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
|
||||
Reference in New Issue
Block a user