indzi
4/15/2019 - 11:27 AM

TransientPropertyValueException

org.hibernate.TransientPropertyValueException: Not-null property references a transient value - transient instance must be saved before current operation : com.bitex.affiliation.core.entity.AffiliationUserEntity.profile -> com.bitex.affiliation.core.entity.AffiliationProfileEntity

//Try putting CascadeType.ALL

@OneToOne(fetch = FetchType.EAGER,cascade=CascadeType.ALL)
@JoinColumn(name="COUNTRY_ID", nullable=false) 

private Country country;