]> git.mxchange.org Git - addressbook-ejb.git/blobdiff - src/java/org/mxchange/jcontactsbusiness/model/opening_time/AddressbookAdminOpeningTimesSessionBean.java
Please cherry-pick:
[addressbook-ejb.git] / src / java / org / mxchange / jcontactsbusiness / model / opening_time / AddressbookAdminOpeningTimesSessionBean.java
index 24de2875f85c1114ede0b925a6ab7caa0dc3177b..a9848c8b4a0a0987a91dded0506eeff6bd662280 100644 (file)
@@ -51,7 +51,7 @@ public class AddressbookAdminOpeningTimesSessionBean extends BaseAddressbookEnte
                if (null == openingTime) {
                        // Throw NPE
                        throw new NullPointerException("openingTime is null"); //NOI18N
-               } else if (openingTime.getOpeningId() instanceof Long) {
+               } else if (openingTime.getOpeningTimeId() instanceof Long) {
                        // Should not happen
                        throw new IllegalArgumentException("openingTime.openingId should not be set."); //NOI18N
                } else if (openingTime.getOpeningStartDay()== null) {
@@ -69,13 +69,13 @@ public class AddressbookAdminOpeningTimesSessionBean extends BaseAddressbookEnte
                }
 
                // Set created timestamp
-               openingTime.setOpeningCreated(new Date());
+               openingTime.setOpeningTimeEntryCreated(new Date());
 
                // Persist it
                this.getEntityManager().persist(openingTime);
 
                // Trace message
-               this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.addOpeningTimes(): openingTime.openingId={1} - EXIT!", this.getClass().getSimpleName(), openingTime.getOpeningId())); //NOI18N
+               this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.addOpeningTimes(): openingTime.openingId={1} - EXIT!", this.getClass().getSimpleName(), openingTime.getOpeningTimeId())); //NOI18N
 
                // Return updated instance
                return openingTime;