当我在Grails中使用RestfulController来保存对象的数据时,如何防止客户端将更改应用到相关的子对象? 假定下列域类: class Language {
String name
}
class TranslationText {
Language language
String text
}
而对于一个TranslationText以下PO
我使用的是Grails Spring Security Core和Grails Spring Security REST plugin,我刚刚开始设置事情。我使用User类和Authority类(默认值)对插件进行初始化,然后继续编写集成测试,然后输入guide I found on the Grails website。 它说,把下面的在集成测试: def "test a user with t