--- /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.Subject;
+
+import java.io.Serializable;
+
+/**
+ * The cache model class for representing Subject in entity cache.
+ *
+ * @author Cedric Lecarpentier
+ * @see Subject
+ * @generated
+ */
+public class SubjectCacheModel implements CacheModel<Subject>, Serializable {
+ @Override
+ public String toString() {
+ StringBundler sb = new StringBundler(13);
+
+ sb.append("{subjectId=");
+ sb.append(subjectId);
+ sb.append(", family=");
+ sb.append(family);
+ sb.append(", numCode=");
+ sb.append(numCode);
+ sb.append(", strCode=");
+ sb.append(strCode);
+ sb.append(", shortLabel=");
+ sb.append(shortLabel);
+ sb.append(", longLabel=");
+ sb.append(longLabel);
+ sb.append("}");
+
+ return sb.toString();
+ }
+
+ public Subject toEntityModel() {
+ SubjectImpl subjectImpl = new SubjectImpl();
+
+ subjectImpl.setSubjectId(subjectId);
+
+ if (family == null) {
+ subjectImpl.setFamily(StringPool.BLANK);
+ }
+ else {
+ subjectImpl.setFamily(family);
+ }
+
+ if (numCode == null) {
+ subjectImpl.setNumCode(StringPool.BLANK);
+ }
+ else {
+ subjectImpl.setNumCode(numCode);
+ }
+
+ if (strCode == null) {
+ subjectImpl.setStrCode(StringPool.BLANK);
+ }
+ else {
+ subjectImpl.setStrCode(strCode);
+ }
+
+ if (shortLabel == null) {
+ subjectImpl.setShortLabel(StringPool.BLANK);
+ }
+ else {
+ subjectImpl.setShortLabel(shortLabel);
+ }
+
+ if (longLabel == null) {
+ subjectImpl.setLongLabel(StringPool.BLANK);
+ }
+ else {
+ subjectImpl.setLongLabel(longLabel);
+ }
+
+ subjectImpl.resetOriginalValues();
+
+ return subjectImpl;
+ }
+
+ public long subjectId;
+ public String family;
+ public String numCode;
+ public String strCode;
+ public String shortLabel;
+ public String longLabel;
+}
\ No newline at end of file