ITeye博客

failed to lazily initialize a collection of role: no session or session was clos

sgl124764903 · 2009-12-14 18:06 · SSH2 · 企业架构 · Markdown

one-to-many  也有 lazy属性 注意位置

        <set name="userRoles" inverse="true" lazy="false">
            <key>
                <column name="user_id" not-null="true" />
            </key>
            <one-to-many class="org.zpgl.model.UserRole" />
        </set>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。