0
我正在尝试使用GORM进行批量插入,并尝试在每50次插入后清除会话。我尝试一下本作获得SessionFactory的sessionFactory返回null
def sessionFactory
,但是当我尝试使用sessionFactory.currentSession
返回Null Pointer Exception
因为sessionFactory
为空。你知道为什么吗?
我正在尝试使用GORM进行批量插入,并尝试在每50次插入后清除会话。我尝试一下本作获得SessionFactory的sessionFactory返回null
def sessionFactory
,但是当我尝试使用sessionFactory.currentSession
返回Null Pointer Exception
因为sessionFactory
为空。你知道为什么吗?
我相信Burt's reply在类似的问题上会帮助你。
顺便说一下,您可以订阅grails turkey组:)
Teşekkürler:) .. – 2012-03-30 12:34:43