--- /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.internalMessaging.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.internalMessaging.model.InternalContent;
+
+import java.io.Serializable;
+
+/**
+ * The cache model class for representing InternalContent in entity cache.
+ *
+ * @author Igor Barma - Mathieu Amblard
+ * @see InternalContent
+ * @generated
+ */
+public class InternalContentCacheModel implements CacheModel<InternalContent>,
+ Serializable {
+ @Override
+ public String toString() {
+ StringBundler sb = new StringBundler(5);
+
+ sb.append("{messageId=");
+ sb.append(messageId);
+ sb.append(", messageContent=");
+ sb.append(messageContent);
+ sb.append("}");
+
+ return sb.toString();
+ }
+
+ public InternalContent toEntityModel() {
+ InternalContentImpl internalContentImpl = new InternalContentImpl();
+
+ internalContentImpl.setMessageId(messageId);
+
+ if (messageContent == null) {
+ internalContentImpl.setMessageContent(StringPool.BLANK);
+ }
+ else {
+ internalContentImpl.setMessageContent(messageContent);
+ }
+
+ internalContentImpl.resetOriginalValues();
+
+ return internalContentImpl;
+ }
+
+ public long messageId;
+ public String messageContent;
+}
\ No newline at end of file