【发布时间】:2014-04-07 07:59:11
【问题描述】:
这是我的代码
try {
if(request.currentOrganization) {
Test test = new Test()
test.organization = request.currentOrganization
test.save()
}
} catch(Exception ignoreMe) {
//println("Unable to update notification table : " + ignoreMe.message)
}
而且这里不需要这个期望,看起来很奇怪,这个话题的其他一些答案对我没有帮助,有人可以帮我解决这个问题
例外
org.hibernate.AssertionFailure: null id in com.rwi.base.test entry (don't flush the Session after an exception occurs
【问题讨论】:
-
首先你为什么不用
Encapsulation这个词?第二个至少邮政编码DailyServiceNotification -
我的意思是组织的getter/setter
标签: hibernate session grails grails-orm