]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 7 Oct 2017 22:09:47 +0000 (00:09 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 7 Oct 2017 22:09:47 +0000 (00:09 +0200)
- 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 <roland@mxchange.org>
src/org/mxchange/jcontactsbusiness/model/opening_times/BusinessOpeningTimes.java

index 241e817a748cedf890995fa4de578a829389522b..b14dd5060d7797bd7702bfd8148257b2c7ff01f6 100644 (file)
@@ -111,24 +111,7 @@ public class BusinessOpeningTimes implements OpeningTimes {
        }
 
        /**
-        * Constructor with all required field
-        * <p>
-        * @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
         * <p>
         * @param openingEndDay    End day
         * @param openingEndTime   End time