hibernate多对多出现的session关闭异常

     <set
            name="Projectlist"
            table="PROJECT_CAN_MONEY"
            lazy="false"
        >
            <key
                column="CHILD_ID"
            >
            </key>

            <many-to-many
                class="com.sinosoft.project.pojo.ProjectOriginList"
                column="PROJECT_ID"
                outer-join="auto"
                lazy="false"
             />
        </set>
       





       <set
            name="Childlist"
            table="PROJECT_CAN_MONEY"
            lazy="false"
        >
            <key
                column="PROJECT_ID"
            >
            </key>

            <many-to-many
                class="com.sinosoft.project.pojo.ProjectChildList"
                column="CHILD_ID"
                outer-join="auto"
                lazy="false"
             />
        </set>
many-to-many下面也要加上lazy="false"

       

你可能感兴趣的:(Hibernate,session,table,Class)