]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 16 Jul 2019 01:29:46 +0000 (03:29 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 16 Jul 2019 01:29:46 +0000 (03:29 +0200)
- reformatted for better readability

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/model/branchoffice/BusinessBranchOffice.java
src/org/mxchange/jcontactsbusiness/model/headquarter/BusinessHeadquarter.java

index 180d2a3175658aede77035cda4c2379005dea39d..6e67551bdd255d0026949930222ff4f04998581f 100644 (file)
@@ -170,9 +170,19 @@ public class BusinessBranchOffice implements BranchOffice {
        /**
         * Opening times for this branch office
         */
-       @JoinTable (name = "branch_opening_times", joinColumns =
-                                                                                          @JoinColumn (name = "branch_opening_id", referencedColumnName = "branch_id"), inverseJoinColumns =
-                                                                                                                                                                                                                                                        @JoinColumn (name = "opening_branch_id", referencedColumnName = "opening_times_id"))
+       @JoinTable (
+                       name = "branch_opening_times",
+                       joinColumns =
+                       @JoinColumn (
+                                       name = "branch_opening_id",
+                                       referencedColumnName = "branch_id"
+                       ),
+                       inverseJoinColumns =
+                       @JoinColumn (
+                                       name = "opening_branch_id",
+                                       referencedColumnName = "opening_times_id"
+                       )
+       )
        @ManyToMany (targetEntity = BusinessOpeningTime.class, cascade = CascadeType.ALL, fetch = FetchType.EAGER)
        private List<OpeningTime> branchOpeningTimes;
 
index 7a546ae46c6ab90b459584c2ff918449a345222a..738d0d6c1d2ea9e68827948b3d4098caeed0b66a 100644 (file)
@@ -160,9 +160,19 @@ public class BusinessHeadquarter implements Headquarter {
        /**
         * Opening times for this branch office
         */
-       @JoinTable (name = "headquarter_opening_times", joinColumns =
-                                                                                                       @JoinColumn (name = "headquarter_opening_id", referencedColumnName = "headquarter_id"), inverseJoinColumns =
-                                                                                                                                                                                                                                                                                       @JoinColumn (name = "opening_headquarter_id", referencedColumnName = "opening_times_id"))
+       @JoinTable (
+                       name = "headquarter_opening_times",
+                       joinColumns =
+                       @JoinColumn (
+                                       name = "headquarter_opening_id",
+                                       referencedColumnName = "headquarter_id"
+                       ),
+                       inverseJoinColumns =
+                       @JoinColumn (
+                                       name = "opening_headquarter_id",
+                                       referencedColumnName = "opening_times_id"
+                       )
+       )
        @ManyToMany (targetEntity = BusinessOpeningTime.class, cascade = CascadeType.ALL)
        private List<OpeningTime> headquarterOpeningTimes;