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) {
}
// 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;