--- /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.agenda.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.agenda.model.Ressource;
+
+import java.io.Serializable;
+
+/**
+ * The cache model class for representing Ressource in entity cache.
+ *
+ * @author Igor Barma
+ * @see Ressource
+ * @generated
+ */
+public class RessourceCacheModel implements CacheModel<Ressource>, Serializable {
+ @Override
+ public String toString() {
+ StringBundler sb = new StringBundler(35);
+
+ sb.append("{idRessource=");
+ sb.append(idRessource);
+ sb.append(", idcreator=");
+ sb.append(idcreator);
+ sb.append(", name=");
+ sb.append(name);
+ sb.append(", description=");
+ sb.append(description);
+ sb.append(", ressourceType=");
+ sb.append(ressourceType);
+ sb.append(", scope=");
+ sb.append(scope);
+ sb.append(", color=");
+ sb.append(color);
+ sb.append(", etabId=");
+ sb.append(etabId);
+ sb.append(", kind=");
+ sb.append(kind);
+ sb.append(", forcePubli=");
+ sb.append(forcePubli);
+ sb.append(", cdtUserId=");
+ sb.append(cdtUserId);
+ sb.append(", ressource=");
+ sb.append(ressource);
+ sb.append(", ecriture=");
+ sb.append(ecriture);
+ sb.append(", filtreCours=");
+ sb.append(filtreCours);
+ sb.append(", classe=");
+ sb.append(classe);
+ sb.append(", matiere=");
+ sb.append(matiere);
+ sb.append(", onlyMyClass=");
+ sb.append(onlyMyClass);
+ sb.append("}");
+
+ return sb.toString();
+ }
+
+ public Ressource toEntityModel() {
+ RessourceImpl ressourceImpl = new RessourceImpl();
+
+ ressourceImpl.setIdRessource(idRessource);
+ ressourceImpl.setIdcreator(idcreator);
+
+ if (name == null) {
+ ressourceImpl.setName(StringPool.BLANK);
+ }
+ else {
+ ressourceImpl.setName(name);
+ }
+
+ if (description == null) {
+ ressourceImpl.setDescription(StringPool.BLANK);
+ }
+ else {
+ ressourceImpl.setDescription(description);
+ }
+
+ ressourceImpl.setRessourceType(ressourceType);
+ ressourceImpl.setScope(scope);
+
+ if (color == null) {
+ ressourceImpl.setColor(StringPool.BLANK);
+ }
+ else {
+ ressourceImpl.setColor(color);
+ }
+
+ ressourceImpl.setEtabId(etabId);
+ ressourceImpl.setKind(kind);
+ ressourceImpl.setForcePubli(forcePubli);
+ ressourceImpl.setCdtUserId(cdtUserId);
+ ressourceImpl.setRessource(ressource);
+ ressourceImpl.setEcriture(ecriture);
+ ressourceImpl.setFiltreCours(filtreCours);
+ ressourceImpl.setClasse(classe);
+
+ if (matiere == null) {
+ ressourceImpl.setMatiere(StringPool.BLANK);
+ }
+ else {
+ ressourceImpl.setMatiere(matiere);
+ }
+
+ ressourceImpl.setOnlyMyClass(onlyMyClass);
+
+ ressourceImpl.resetOriginalValues();
+
+ return ressourceImpl;
+ }
+
+ public long idRessource;
+ public long idcreator;
+ public String name;
+ public String description;
+ public int ressourceType;
+ public int scope;
+ public String color;
+ public long etabId;
+ public int kind;
+ public boolean forcePubli;
+ public long cdtUserId;
+ public boolean ressource;
+ public boolean ecriture;
+ public int filtreCours;
+ public long classe;
+ public String matiere;
+ public boolean onlyMyClass;
+}
\ No newline at end of file