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