DongHyeon Kim (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
) *commented* on HHH-16682 (
https://hibernate.atlassian.net/browse/HHH-16682?atlOrigin=eyJpIjoiNDM1Yj...
)
Re: Changes in @JdbcTypeCode(SqlTypes.JSON) are not written to DB (
https://hibernate.atlassian.net/browse/HHH-16682?atlOrigin=eyJpIjoiNDM1Yj...
)
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(...).
(
https://hibernate.atlassian.net/browse/HHH-16682#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16682#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:a994ca2 )