忘记贴异常了
ERROR [org.hibernate.event.def.AbstractFlushingEventListener] - Could not synchronize database state with session
org.hibernate.HibernateException: Unable to resolve property: depCode
ERROR [org.hibernate.event.def.AbstractFlushingEventListener] - Could not synchronize database state with session
org.hibernate.HibernateException: Unable to resolve property: depCode
<many-to-one name="xgGgDepartment" class="com.mobilecn.digicampus.xgxt.common.bean.XgGgDepartment" fetch="select">
<column name="SSXYDM" length="4" property-ref="depCode"/>
</many-to-one>
</class>
你将property-ref="depCode"放到column标签中试试!
好像说property-ref="非id"。http://forum.springframework.org/archive/index.php/t-41687.html
靠,我郁闷,找了半天。funck