if (millis != null) {
week = new DayHolder(new Date(millis)).getSQLDate();
} else {
week = null;
}
HRPlanningDO planning = null;
if (userId != null && week != null) {
// Check if there exists already an entry (deleted or not):
planning = hrPlanningDao.getEntry(userId, week);
}
if (planning != null) {