开发者

Hibernate load function left out of grails?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜