hibernate 一对多的关系 新增数据时多的一边没插进去值???
这是hibernate xml配置文件
OutSideBean.hbm.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.tianxin.cimp.outside.model.OutSideBean" table="user_out_side" >
<id name="outsideid" type="java.lang.Integer">
<column name="out_side_id" />
<generator class="native" />
</id>
<property name="createdate" type="java.util.Date">
<column name="create_date" length="25" not-null="true" />
</property>
<property name="outcontent" type="java.lang.String">
<column name="out_content" length="255" not-null="true" />
</property>
<property name="outadress" type="java.lang.String">
<column name="out_adress" length="100" not-null="true" />
</property>
<property name="outdate" type="java.lang.String">
<column name="out_date" length="25" not-null="true" />
</property>
<property name="backdate" type="java.lang.String">
<column name="back_date" length="25" not-null="false" />
</property>
<property name="beizhu" type="java.lang.String">
<column name="beizhu" length="100" not-null="false" />
</property>
<many-to-one name="muserBean" lazy="false" not-null="true"
column="user_Id"
class="com.tianxin.cimp.colligate.model.MuserBean" outer-join="auto"/>
<set name="checkStateBeans" inverse="true" lazy="false" >
<key column="out_side_id"/>
<one-to-many class="com.tianxin.cimp.outside.model.CheckStateBean"/>
</set>
</class>
</hibernate-mapping>
============================================
CheckStateBean.hbm.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.tianxin.cimp.outside.model.CheckStateBean" table="check_state" >
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="native" />
</id>
<property name="stateid" type="java.lang.String">
<column name="state_id" length="30" not-null="false" />
</property>
<property name="statename" type="java.lang.String">
<column name="