spring boot org.hibernate.TransientPropertyValueException: object references an unsaved transient instance code example
Example: object references an unsaved transient instance - save the transient instance before flushing
@ManyToOne(cascade=CascadeType.PERSIST)
@JoinColumn(name="cidade_id")
private Cidade cidade;