New posts for Spring and Hibernate

This commit is contained in:
2026-11-06 01:05:27 +05:30
parent 51913ad9d4
commit dc13293046
136 changed files with 5268 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# CustomerRequest (record) -> Customer (entity); AddressMapper.toEntity inherits the rename in reverse
email after @AfterMapping : '[email protected]' (request carried ' [email protected] ')
createdAt (from @Context) : 2026-11-05T00:00:00Z
address.postalCode : 600001 <- @InheritInverseConfiguration turned zip back into postalCode
address.country : null <- defaultValue is NOT inverted; toDto gives IN, toEntity does not
tier : null <- the entity said STANDARD; the request said null
tier with nullValueCheckStrategy = ALWAYS : STANDARD
id / passwordHash / orders : null / null / null <- ignore = true
--- round trip: entity -> record -> entity ---
passwordHash survives the round trip? false
address country survives? null -> IN