--- /dev/null
+/**
+ * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ */
+
+package com.pentila.entSavoie.cdt.model.impl;
+
+import com.liferay.portal.kernel.util.StringBundler;
+import com.liferay.portal.kernel.util.StringPool;
+import com.liferay.portal.model.CacheModel;
+
+import com.pentila.entSavoie.cdt.model.Configuration;
+
+import java.io.Serializable;
+
+import java.util.Date;
+
+/**
+ * The cache model class for representing Configuration in entity cache.
+ *
+ * @author Cedric Lecarpentier
+ * @see Configuration
+ * @generated
+ */
+public class ConfigurationCacheModel implements CacheModel<Configuration>,
+ Serializable {
+ @Override
+ public String toString() {
+ StringBundler sb = new StringBundler(13);
+
+ sb.append("{confId=");
+ sb.append(confId);
+ sb.append(", schoolId=");
+ sb.append(schoolId);
+ sb.append(", startDayTime=");
+ sb.append(startDayTime);
+ sb.append(", endDayTime=");
+ sb.append(endDayTime);
+ sb.append(", startSessionsDate=");
+ sb.append(startSessionsDate);
+ sb.append(", endSessionsDate=");
+ sb.append(endSessionsDate);
+ sb.append("}");
+
+ return sb.toString();
+ }
+
+ public Configuration toEntityModel() {
+ ConfigurationImpl configurationImpl = new ConfigurationImpl();
+
+ configurationImpl.setConfId(confId);
+ configurationImpl.setSchoolId(schoolId);
+
+ if (startDayTime == null) {
+ configurationImpl.setStartDayTime(StringPool.BLANK);
+ }
+ else {
+ configurationImpl.setStartDayTime(startDayTime);
+ }
+
+ if (endDayTime == null) {
+ configurationImpl.setEndDayTime(StringPool.BLANK);
+ }
+ else {
+ configurationImpl.setEndDayTime(endDayTime);
+ }
+
+ if (startSessionsDate == Long.MIN_VALUE) {
+ configurationImpl.setStartSessionsDate(null);
+ }
+ else {
+ configurationImpl.setStartSessionsDate(new Date(startSessionsDate));
+ }
+
+ if (endSessionsDate == Long.MIN_VALUE) {
+ configurationImpl.setEndSessionsDate(null);
+ }
+ else {
+ configurationImpl.setEndSessionsDate(new Date(endSessionsDate));
+ }
+
+ configurationImpl.resetOriginalValues();
+
+ return configurationImpl;
+ }
+
+ public long confId;
+ public long schoolId;
+ public String startDayTime;
+ public String endDayTime;
+ public long startSessionsDate;
+ public long endSessionsDate;
+}
\ No newline at end of file