I receive following error when I save the object using Hibernate
object references an unsaved transient instance - save the transient instance before flushi
If you're using Spring Data JPA then addition @Transactional annotation to your service implementation would solve the issue.
@Transactional