Object references an unsaved transient instance - save the transient instance before flushing in Java Hibernate Solution

When I try to save an Object in Hibernate JPA, my Spring Application throws below Error -

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