From 81b71869a43b860747214ea480fd30b562da62a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 16 Jul 2019 03:29:46 +0200 Subject: [PATCH] Continued: - reformatted for better readability MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../model/branchoffice/BusinessBranchOffice.java | 16 +++++++++++++--- .../model/headquarter/BusinessHeadquarter.java | 16 +++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) 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; -- 2.39.5