Grails + Mongo: GORM mysteriously thinks a object referenced by an embedded field has a changed propery

别说谁变了你拦得住时间么 提交于 2019-12-11 12:30:09

问题


I have a domain class called Form which has an embedded field called union of type Organization which is embedded. Organization has the field createdByUser. User has a field organization of type Organization added by AST transformation.

So, whenever i try to save a Form object, it tries to change the user reference by createdByUser to an organization id of 1 for mysterious reasons.

来源:https://stackoverflow.com/questions/30714307/grails-mongo-gorm-mysteriously-thinks-a-object-referenced-by-an-embedded-fiel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!