I'm also experiencing the same issue. When mapping json with JdbcTypeCode, changes are not detected unless the field is reassigned. I'm currently using this with Spring Boot 3.0.7 and Kotlin 1.8.21. The issue occurred in Hibernate 6.1.7, and remains the same even after upgrading to 6.2.3. When declared as val map: MutableMap<String, Any?> and set to json via JdbcTypeCode, updates do not occur even when performing actions such as map.put, remove, etc. However, in the case of var map: MutableMap<String, Any?>, updates occur when changed with map = mutableMapOf(...). |