對象引用未保存的瞬態實例-在刷新以前保存瞬態實例

問題:

使用Hibernate保存對象時收到如下錯誤spa

object references an unsaved transient instance - save the transient instance before flushing

解決方案:

參考一: https://stackoom.com/question/9f3y/對象引用未保存的瞬態實例-在刷新以前保存瞬態實例
參考二: https://oldbug.net/q/9f3y/object-references-an-unsaved-transient-instance-save-the-transient-instance-before-flushing
相關文章
相關標籤/搜索