From: Roland Häder Date: Sat, 7 Oct 2017 22:09:47 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cbfcdaa4726798b04b4a6c898820ef3347db3386;p=jcontacts-business-core.git Continued: - don't allow primary key being accidently set by constructors, that will trigger more bugs - got then rid of one constructor Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jcontactsbusiness/model/opening_times/BusinessOpeningTimes.java b/src/org/mxchange/jcontactsbusiness/model/opening_times/BusinessOpeningTimes.java index 241e817..b14dd50 100644 --- a/src/org/mxchange/jcontactsbusiness/model/opening_times/BusinessOpeningTimes.java +++ b/src/org/mxchange/jcontactsbusiness/model/opening_times/BusinessOpeningTimes.java @@ -111,24 +111,7 @@ public class BusinessOpeningTimes implements OpeningTimes { } /** - * Constructor with all required field - *

- * @param openingEndDay End day - * @param openingEndTime End time - * @param openingId Id number - * @param openingStartDay Start day - * @param openingStartTime Start time - */ - public BusinessOpeningTimes (final DayOfTheWeek openingEndDay, final Date openingEndTime, final Long openingId, final DayOfTheWeek openingStartDay, final Date openingStartTime) { - // Call other constructor - this(openingEndDay, openingEndTime, openingStartDay, openingStartTime); - - // Set openingTimeId number - this.openingId = openingId; - } - - /** - * Constructor with all fields except openingTimeId number + * Constructor with all required fields except created timestamp *

* @param openingEndDay End day * @param openingEndTime End time