gorm-hibernate5
gorm-hibernate5 copied to clipboard
Not allow to modify dateCreated ?
Issue link: grails/grails-data-mapping#1249
When GORM version is greater than 6.1.11
, will nolonger to change the dateCreated
anymore.
I find the reason is:
https://github.com/grails/gorm-hibernate5/blob/408b681658ee24ff13db3b6c20c9ea290756ec3b/grails-datastore-gorm-hibernate5/src/main/groovy/org/grails/orm/hibernate/support/ClosureEventTriggeringInterceptor.java#L205-L208
I don't know why you're not allow to modify dateCreated
?
I think this is related to this?
https://github.com/grails/gorm-hibernate5/issues/146
Yes, that's true. Since GORM 6.0.11 does not allow to modify dateCreated
, and I find the source code. If you changed the dateCreated, it will be dismissed.