--- /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.cartable.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.cartable.model.CasierEntry;
+
+import java.io.Serializable;
+
+import java.util.Date;
+
+/**
+ * The cache model class for representing CasierEntry in entity cache.
+ *
+ * @author Barma Igor - Amblard Mathieu
+ * @see CasierEntry
+ * @generated
+ */
+public class CasierEntryCacheModel implements CacheModel<CasierEntry>,
+ Serializable {
+ @Override
+ public String toString() {
+ StringBundler sb = new StringBundler(23);
+
+ sb.append("{casierEntryId=");
+ sb.append(casierEntryId);
+ sb.append(", companyId=");
+ sb.append(companyId);
+ sb.append(", groupId=");
+ sb.append(groupId);
+ sb.append(", entryId=");
+ sb.append(entryId);
+ sb.append(", isNew=");
+ sb.append(isNew);
+ sb.append(", senderId=");
+ sb.append(senderId);
+ sb.append(", sendDate=");
+ sb.append(sendDate);
+ sb.append(", comment=");
+ sb.append(comment);
+ sb.append(", replied=");
+ sb.append(replied);
+ sb.append(", replyable=");
+ sb.append(replyable);
+ sb.append(", size=");
+ sb.append(size);
+ sb.append("}");
+
+ return sb.toString();
+ }
+
+ public CasierEntry toEntityModel() {
+ CasierEntryImpl casierEntryImpl = new CasierEntryImpl();
+
+ casierEntryImpl.setCasierEntryId(casierEntryId);
+ casierEntryImpl.setCompanyId(companyId);
+ casierEntryImpl.setGroupId(groupId);
+ casierEntryImpl.setEntryId(entryId);
+ casierEntryImpl.setIsNew(isNew);
+ casierEntryImpl.setSenderId(senderId);
+
+ if (sendDate == Long.MIN_VALUE) {
+ casierEntryImpl.setSendDate(null);
+ }
+ else {
+ casierEntryImpl.setSendDate(new Date(sendDate));
+ }
+
+ if (comment == null) {
+ casierEntryImpl.setComment(StringPool.BLANK);
+ }
+ else {
+ casierEntryImpl.setComment(comment);
+ }
+
+ casierEntryImpl.setReplied(replied);
+ casierEntryImpl.setReplyable(replyable);
+ casierEntryImpl.setSize(size);
+
+ casierEntryImpl.resetOriginalValues();
+
+ return casierEntryImpl;
+ }
+
+ public long casierEntryId;
+ public long companyId;
+ public long groupId;
+ public long entryId;
+ public boolean isNew;
+ public long senderId;
+ public long sendDate;
+ public String comment;
+ public boolean replied;
+ public boolean replyable;
+ public long size;
+}
\ No newline at end of file