开发者

Hibernate load function left out of grails?

开发者 https://www.devze.com 2022-12-20 13:17 出处:网络
I noticed that the Grails hibernate plugin does not support the hibernate load function?Does anybody know why that is?In all of the documentation that I have seen, it seems that the accepted way to de

I noticed that the Grails hibernate plugin does not support the hibernate load function? Does anybody know why that is? In all of the documentation that I have seen, it seems that the accepted way to delete an object from a db is to do a get() with the object id followed by a delete(). While this works it 开发者_运维知识库makes an unnecessary database hit. Was this a concious design decision?


I tried this in 1.0 and it wouldn't work because of a MetaClass issue, but it appears to work now. There's an open JIRA - http://jira.codehaus.org/browse/GRAILS-5406 - that I'll be implementing for 1.3.

0

精彩评论

暂无评论...
验证码 换一张
取 消