Skip to content

Instantly share code, notes, and snippets.

@indzi
Created April 15, 2019 11:27
Show Gist options
  • Save indzi/104e9e62e43016aa08913b35cf7ee816 to your computer and use it in GitHub Desktop.
Save indzi/104e9e62e43016aa08913b35cf7ee816 to your computer and use it in GitHub Desktop.
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.
//Try putting CascadeType.ALL
@OneToOne(fetch = FetchType.EAGER,cascade=CascadeType.ALL)
@JoinColumn(name="COUNTRY_ID", nullable=false)
private Country country;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment