]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
it should all be ids ...
authorRoland Haeder <roland@mxchange.org>
Sat, 10 Oct 2015 21:05:56 +0000 (23:05 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 10 Oct 2015 21:50:16 +0000 (23:50 +0200)
src/org/mxchange/jcontactsbusiness/branch/CompanyBranchOffice.java
src/org/mxchange/jcontactsbusiness/headquarters/CompanyHeadQuartersData.java

index 3dc45842d307fa15e70e0ba593953e41540550ad..621e353eef91e9fedca38fa52d086c21d92b3fe7 100644 (file)
@@ -94,7 +94,7 @@ public class CompanyBranchOffice implements BranchOffice, Comparable<BranchOffic
        /**
         * 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;
 
index 496251148275b6b558563277c291435b2dcea5d5..bc80e19f449368d56beff7ec57fe51b00d6d669b 100644 (file)
@@ -53,7 +53,7 @@ public class CompanyHeadQuartersData implements HeadQuartersData, Comparable<Hea
        /**
         * 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;