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