为啥我把grade的inverse改true的之后还是有update?
我确定按着说的改了额。。
我确定按着说的改了额。。
2016-01-26
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate22/Hibernate22 Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.etc.entity.Grade" table="grade">
<id name="gid" type="int">
<column name="gid" />
<generator class="native"></generator>
</id>
<property name="gname" type="java.lang.String">
<column name="gname" />
</property>
<property name="gdesc" type="java.lang.String">
<column name="gdesc" />
</property>
<set name="students" table="student" inverse="true">
<key column="gid"></key>
<one-to-many class="com.etc.entity.Student"/>
</set>
</class>
</hibernate-mapping>
我也是还有update
举报