Signed-off-by:Roland Häder <roland@mxchange.org>
* Branch office's country code
*/
@JoinColumn (name = "branch_country_id", nullable = false)
- @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.ALL, optional = false, fetch = FetchType.EAGER)
+ @OneToOne (targetEntity = CountryData.class, optional = false, fetch = FetchType.EAGER)
private Country branchCountry;
/**
* Headquarter's country code
*/
@JoinColumn (name = "headquarters_country_id", nullable = false)
- @OneToOne (targetEntity = CountryData.class, cascade = CascadeType.ALL, optional = false, fetch = FetchType.EAGER)
+ @OneToOne (targetEntity = CountryData.class, optional = false, fetch = FetchType.EAGER)
private Country headquartersCountry;
/**