时间:2021-07-01 10:21:17 帮助过:2人阅读
如果使用的Spring 管理hibernate, 在你的spring的数据源中配置
<prop key="hibernate.event.merge.entity_copy_observer">allow</prop>
|
具体参考:http://thinerzq.me/2016/02/01/Multiple-representations-of-the-same-entity-are-being-merged%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95/
Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: Multiple representations of the same entity解决方法
标签: