org.hibernate.TransientObjectException: object references an unsaved transient instance ![]() |
SolutionEither use session.save for both objects or specify a cascade="save-update,persist" in your mapping.Exception MessageException in thread "main" org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: de.laliluna.cascade1.Dog
|
object references an unsaved transient instance - save the transient instance before flushing
最新推荐文章于 2021-08-31 16:08:48 发布