]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
opps, wrong entity linked
authorRoland Haeder <roland@mxchange.org>
Tue, 13 Oct 2015 06:38:43 +0000 (08:38 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 13 Oct 2015 06:38:43 +0000 (08:38 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcontactsbusiness/branch/CompanyBranchOffice.java

index ea21fb16744125f04bb32febd6f72b78b48e2dd1..80a1ca47f6d11adceb4193d9fb5ff545b145d54b 100644 (file)
@@ -30,6 +30,7 @@ import javax.persistence.Table;
 import org.mxchange.jcountry.data.Country;
 import org.mxchange.jcountry.data.CountryData;
 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+import org.mxchange.jphone.phonenumbers.fax.FaxNumber;
 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
 import org.mxchange.jphone.phonenumbers.landline.LandLineNumber;
 
@@ -71,7 +72,7 @@ public class CompanyBranchOffice implements BranchOffice, Comparable<BranchOffic
         * Branch office's main fax number: +ccxxxxxxxxxx
         */
        @JoinColumn (name = "branch_fax_number_id")
-       @OneToOne (targetEntity = LandLineNumber.class, cascade = CascadeType.ALL)
+       @OneToOne (targetEntity = FaxNumber.class, cascade = CascadeType.ALL)
        private DialableFaxNumber branchFaxNumber;
 
        /**