无法懒惰地初始化集合,没有关闭会话或会话

时间:2013-07-05 16:30:27

标签: orm coldfusion

当我填写属性date_declined的值时,我在不相关的属性上得到以下错误。

Application Execution Exception
Error Type: org.hibernate.LazyInitializationException : [N/A]
Error Messages: failed to lazily initialize a collection of role: blm_doc.blm_doc_cases, no session or session was closed

1 个答案:

答案 0 :(得分:0)

属性定义中缺少ormtype = date。

property name="declined_date" 
    column="DECLINED_DATE" 
    sqltype="DATE"
    ormtype="date";