should be mapped with insert="false" update="false"

mac2022-06-30  79

我 找了好久原来是个低级错误,在copy的时候不小心的缘故

<hibernate-mapping package="com.strive.entity">

  <class name="Dept" table="Dept">    <id name="deptno" column=" deptno"  type="integer">        <generator class="assigned"></generator>    </id>    <property name="dname"  column=" deptno" type="string"></property>    <property name="loc"  column="loc" type="string"></property>   </class> </hibernate-mapping>

转载于:https://www.cnblogs.com/J2EEPLUS/archive/2012/02/19/2487907.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)