--- /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.blogEntryInfos.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.blogEntryInfos.model.BlogEntryInfos;
+
+import java.io.Serializable;
+
+import java.util.Date;
+
+/**
+ * The cache model class for representing BlogEntryInfos in entity cache.
+ *
+ * @author Tardy Camille
+ * @see BlogEntryInfos
+ * @generated
+ */
+public class BlogEntryInfosCacheModel implements CacheModel<BlogEntryInfos>,
+ Serializable {
+ @Override
+ public String toString() {
+ StringBundler sb = new StringBundler(29);
+
+ sb.append("{blogEntryInfosId=");
+ sb.append(blogEntryInfosId);
+ sb.append(", blogEntryId=");
+ sb.append(blogEntryId);
+ sb.append(", headMaster=");
+ sb.append(headMaster);
+ sb.append(", highPriority=");
+ sb.append(highPriority);
+ sb.append(", groupId=");
+ sb.append(groupId);
+ sb.append(", expirationDate=");
+ sb.append(expirationDate);
+ sb.append(", parutionDate=");
+ sb.append(parutionDate);
+ sb.append(", categorie=");
+ sb.append(categorie);
+ sb.append(", imageId=");
+ sb.append(imageId);
+ sb.append(", blogEntryGroup=");
+ sb.append(blogEntryGroup);
+ sb.append(", flashFileState=");
+ sb.append(flashFileState);
+ sb.append(", intranetNews=");
+ sb.append(intranetNews);
+ sb.append(", lastEditorId=");
+ sb.append(lastEditorId);
+ sb.append(", priority=");
+ sb.append(priority);
+ sb.append("}");
+
+ return sb.toString();
+ }
+
+ public BlogEntryInfos toEntityModel() {
+ BlogEntryInfosImpl blogEntryInfosImpl = new BlogEntryInfosImpl();
+
+ blogEntryInfosImpl.setBlogEntryInfosId(blogEntryInfosId);
+ blogEntryInfosImpl.setBlogEntryId(blogEntryId);
+ blogEntryInfosImpl.setHeadMaster(headMaster);
+ blogEntryInfosImpl.setHighPriority(highPriority);
+ blogEntryInfosImpl.setGroupId(groupId);
+
+ if (expirationDate == Long.MIN_VALUE) {
+ blogEntryInfosImpl.setExpirationDate(null);
+ }
+ else {
+ blogEntryInfosImpl.setExpirationDate(new Date(expirationDate));
+ }
+
+ if (parutionDate == Long.MIN_VALUE) {
+ blogEntryInfosImpl.setParutionDate(null);
+ }
+ else {
+ blogEntryInfosImpl.setParutionDate(new Date(parutionDate));
+ }
+
+ blogEntryInfosImpl.setCategorie(categorie);
+ blogEntryInfosImpl.setImageId(imageId);
+ blogEntryInfosImpl.setBlogEntryGroup(blogEntryGroup);
+
+ if (flashFileState == null) {
+ blogEntryInfosImpl.setFlashFileState(StringPool.BLANK);
+ }
+ else {
+ blogEntryInfosImpl.setFlashFileState(flashFileState);
+ }
+
+ blogEntryInfosImpl.setIntranetNews(intranetNews);
+ blogEntryInfosImpl.setLastEditorId(lastEditorId);
+ blogEntryInfosImpl.setPriority(priority);
+
+ blogEntryInfosImpl.resetOriginalValues();
+
+ return blogEntryInfosImpl;
+ }
+
+ public long blogEntryInfosId;
+ public long blogEntryId;
+ public boolean headMaster;
+ public boolean highPriority;
+ public long groupId;
+ public long expirationDate;
+ public long parutionDate;
+ public int categorie;
+ public long imageId;
+ public long blogEntryGroup;
+ public String flashFileState;
+ public boolean intranetNews;
+ public long lastEditorId;
+ public boolean priority;
+}
\ No newline at end of file