org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with the given identifier exists:

org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with the given identifier exists:

 

解决办法:将<many-to-one>的not-found="ignore";

 

not-found:指定的外键引用的数据不存在时如何处理。ignore表示忽略,会将行数据不存在视为一个空(null)关联。exception表示默认)抛出异常

你可能感兴趣的:(exception,null)