I receive following error when I save the object using Hibernate
object references an unsaved transient instance - save the transient instance before flushi
I faced this exception when I did not persist parent object but I was saving the child. To resolve the issue, with in the same session I persisted both the child and parent objects and used CascadeType.ALL on the parent.