跳至主要內容

[java] hibernate 執行 list 時會自動 update

i had the same problem, only in my case, no mutation was occurring the the getter/setters, it was a custom data type (JGeometryType) that was triggering the change. So in my case, adding
@Access(AccessType.FIELD)
didn’t do anything, I used:
column 加上 insertable = false, updatable = false
@Column(name = “GEOM”, insertable=false, updatable=false)
as a temporary fix until I find out exactly where that customdatatype is messing with things-
reference: https://forum.hibernate.org/viewtopic.php?t=979630&start=0&postdays=0&postorder=asc&highlight=

分類:java
由 Compete Themes 設計的 Author 佈景主題