object references an unsaved transient instance - save the transient instance before flushing merge 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;