在Grails / Gorm中使用lazy property fetching [英] Using lazy property fetching in Grails / Gorm

查看:132
本文介绍了在Grails / Gorm中使用lazy property fetching的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以在Grails / Gorm中使用lazy property fetching?
somtehing像:

@Basic(fetch = FetchType.LAZY)



注释
(它也适用于左连接获取?)

(例如延迟加载String属性)

解决方案

在grails-user邮件列表上询问了这个问题 here 。讨论了几个不同的选项。


is there any way to use lazy property fetching in Grails / Gorm ? somtehing like:

@Basic(fetch = FetchType.LAZY)

annotation ( it also works with left join fetch?)

(for example lazy loading of an String attribute)

解决方案

This question was asked on the grails-user mailing list here. There are a few different options discussed.

这篇关于在Grails / Gorm中使用lazy property fetching的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆