]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
no cascading may fix this? + updated jar(s)
authorRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 12:42:38 +0000 (14:42 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 12:45:49 +0000 (14:45 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcontacts-core.jar
lib/jphone-core.jar
src/org/mxchange/jcontactsbusiness/branch/CompanyBranchOffice.java
src/org/mxchange/jcontactsbusiness/headquarters/CompanyHeadQuartersData.java

index 6e2e2d3d9a5f84eddb00e082d9ae8d8e500fcb46..30e9640892d5fe2c8dbe696eeb1e857b2d0c5c9c 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
index 414efac950081166b94266e38fee672969ff647f..6da09db142b3d85355881e06c93e869b931e72a0 100644 (file)
Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ
index c7aea0f4a531e5d8ec3bfcee62139db0408fb721..ea21fb16744125f04bb32febd6f72b78b48e2dd1 100644 (file)
@@ -58,7 +58,7 @@ public class CompanyBranchOffice implements BranchOffice, Comparable<BranchOffic
         * 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;
 
        /**
index b7ee9752695f59952bc75b555189b088b829c59e..259d69159c0a4f5007f504fb66fc3efe5463910b 100644 (file)
@@ -59,7 +59,7 @@ public class CompanyHeadQuartersData implements HeadQuartersData, Comparable<Hea
         * 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;
 
        /**