首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
object references an unsaved transient instance - save the transient instance before flushing:
object references an unsaved transient instance - save the transient instance before flushing:
mac
2022-06-30
30
object references an unsaved transient instance - save the transient instance before flushing:
报错原因
报错原因
在级联操作时 , 新建了一个对象 , 在未保存之前将它保存到了另一个新建的对象中( 非持久态 ) 解决办法@ManyToMany中添加cascade属性,值为PERSIST
转载请注明原文地址: https://mac.8miu.com/read-52450.html
最新回复
(
0
)