object references an unsaved transient instance【异常】
转载自https://www.cnblogs.com/dixinyunpan/p/6004991.html
【异常提示】
TransientObjectException: object references an unsaved transient instance -save the transient instance before flushing:
解决办法:many to one 的级联设置为 save-update,persist