From: Roland Häder Date: Tue, 16 Jul 2019 01:29:46 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=81b71869a43b860747214ea480fd30b562da62a3;p=jcontacts-business-core.git Continued: - reformatted for better readability Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jcontactsbusiness/model/branchoffice/BusinessBranchOffice.java b/src/org/mxchange/jcontactsbusiness/model/branchoffice/BusinessBranchOffice.java index 180d2a3..6e67551 100644 --- a/src/org/mxchange/jcontactsbusiness/model/branchoffice/BusinessBranchOffice.java +++ b/src/org/mxchange/jcontactsbusiness/model/branchoffice/BusinessBranchOffice.java @@ -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 branchOpeningTimes; diff --git a/src/org/mxchange/jcontactsbusiness/model/headquarter/BusinessHeadquarter.java b/src/org/mxchange/jcontactsbusiness/model/headquarter/BusinessHeadquarter.java index 7a546ae..738d0d6 100644 --- a/src/org/mxchange/jcontactsbusiness/model/headquarter/BusinessHeadquarter.java +++ b/src/org/mxchange/jcontactsbusiness/model/headquarter/BusinessHeadquarter.java @@ -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 headquarterOpeningTimes;