/**
* Branch office's country code
*/
- @JoinColumn (name = "branch_country_code", nullable = false)
+ @JoinColumn (name = "branch_country_id", nullable = false)
@OneToOne(targetEntity = CountryData.class, cascade = CascadeType.ALL, optional = false)
private Country branchCountry;
/**
* Headquarter's country code
*/
- @JoinColumn (name = "headquarters_country_code", nullable = false)
+ @JoinColumn (name = "headquarters_country_id", nullable = false)
@OneToOne(targetEntity = CountryData.class, cascade = CascadeType.ALL, optional = false)
private Country headquartersCountry;