--- /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.gestionVieScolaire.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.gestionVieScolaire.model.UserMapping;
+
+import java.io.Serializable;
+
+/**
+ * The cache model class for representing UserMapping in entity cache.
+ *
+ * @author Cédric Lecarpentier
+ * @see UserMapping
+ * @generated
+ */
+public class UserMappingCacheModel implements CacheModel<UserMapping>,
+ Serializable {
+ @Override
+ public String toString() {
+ StringBundler sb = new StringBundler(19);
+
+ sb.append("{userId=");
+ sb.append(userId);
+ sb.append(", etabId=");
+ sb.append(etabId);
+ sb.append(", nationalNumber=");
+ sb.append(nationalNumber);
+ sb.append(", pronoteId=");
+ sb.append(pronoteId);
+ sb.append(", userEtabId=");
+ sb.append(userEtabId);
+ sb.append(", sconetId=");
+ sb.append(sconetId);
+ sb.append(", stsId=");
+ sb.append(stsId);
+ sb.append(", casId=");
+ sb.append(casId);
+ sb.append(", partnerId=");
+ sb.append(partnerId);
+ sb.append("}");
+
+ return sb.toString();
+ }
+
+ public UserMapping toEntityModel() {
+ UserMappingImpl userMappingImpl = new UserMappingImpl();
+
+ userMappingImpl.setUserId(userId);
+ userMappingImpl.setEtabId(etabId);
+
+ if (nationalNumber == null) {
+ userMappingImpl.setNationalNumber(StringPool.BLANK);
+ }
+ else {
+ userMappingImpl.setNationalNumber(nationalNumber);
+ }
+
+ if (pronoteId == null) {
+ userMappingImpl.setPronoteId(StringPool.BLANK);
+ }
+ else {
+ userMappingImpl.setPronoteId(pronoteId);
+ }
+
+ if (userEtabId == null) {
+ userMappingImpl.setUserEtabId(StringPool.BLANK);
+ }
+ else {
+ userMappingImpl.setUserEtabId(userEtabId);
+ }
+
+ if (sconetId == null) {
+ userMappingImpl.setSconetId(StringPool.BLANK);
+ }
+ else {
+ userMappingImpl.setSconetId(sconetId);
+ }
+
+ if (stsId == null) {
+ userMappingImpl.setStsId(StringPool.BLANK);
+ }
+ else {
+ userMappingImpl.setStsId(stsId);
+ }
+
+ if (casId == null) {
+ userMappingImpl.setCasId(StringPool.BLANK);
+ }
+ else {
+ userMappingImpl.setCasId(casId);
+ }
+
+ if (partnerId == null) {
+ userMappingImpl.setPartnerId(StringPool.BLANK);
+ }
+ else {
+ userMappingImpl.setPartnerId(partnerId);
+ }
+
+ userMappingImpl.resetOriginalValues();
+
+ return userMappingImpl;
+ }
+
+ public long userId;
+ public long etabId;
+ public String nationalNumber;
+ public String pronoteId;
+ public String userEtabId;
+ public String sconetId;
+ public String stsId;
+ public String casId;
+ public String partnerId;
+}
\ No newline at end of file