--- /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.userProperties.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.userProperties.model.UserContact;
+
+import java.io.Serializable;
+
+/**
+ * The cache model class for representing UserContact in entity cache.
+ *
+ * @author Amblard Mathieu - Barma Igor
+ * @see UserContact
+ * @generated
+ */
+public class UserContactCacheModel implements CacheModel<UserContact>,
+ Serializable {
+ @Override
+ public String toString() {
+ StringBundler sb = new StringBundler(21);
+
+ sb.append("{contactId=");
+ sb.append(contactId);
+ sb.append(", userId=");
+ sb.append(userId);
+ sb.append(", address=");
+ sb.append(address);
+ sb.append(", isAddressAuthorized=");
+ sb.append(isAddressAuthorized);
+ sb.append(", mail=");
+ sb.append(mail);
+ sb.append(", isMailAuthorized=");
+ sb.append(isMailAuthorized);
+ sb.append(", mobilePhone=");
+ sb.append(mobilePhone);
+ sb.append(", mobilePhoneSMS=");
+ sb.append(mobilePhoneSMS);
+ sb.append(", homePhone=");
+ sb.append(homePhone);
+ sb.append(", proPhone=");
+ sb.append(proPhone);
+ sb.append("}");
+
+ return sb.toString();
+ }
+
+ public UserContact toEntityModel() {
+ UserContactImpl userContactImpl = new UserContactImpl();
+
+ userContactImpl.setContactId(contactId);
+ userContactImpl.setUserId(userId);
+
+ if (address == null) {
+ userContactImpl.setAddress(StringPool.BLANK);
+ }
+ else {
+ userContactImpl.setAddress(address);
+ }
+
+ userContactImpl.setIsAddressAuthorized(isAddressAuthorized);
+
+ if (mail == null) {
+ userContactImpl.setMail(StringPool.BLANK);
+ }
+ else {
+ userContactImpl.setMail(mail);
+ }
+
+ userContactImpl.setIsMailAuthorized(isMailAuthorized);
+
+ if (mobilePhone == null) {
+ userContactImpl.setMobilePhone(StringPool.BLANK);
+ }
+ else {
+ userContactImpl.setMobilePhone(mobilePhone);
+ }
+
+ if (mobilePhoneSMS == null) {
+ userContactImpl.setMobilePhoneSMS(StringPool.BLANK);
+ }
+ else {
+ userContactImpl.setMobilePhoneSMS(mobilePhoneSMS);
+ }
+
+ if (homePhone == null) {
+ userContactImpl.setHomePhone(StringPool.BLANK);
+ }
+ else {
+ userContactImpl.setHomePhone(homePhone);
+ }
+
+ if (proPhone == null) {
+ userContactImpl.setProPhone(StringPool.BLANK);
+ }
+ else {
+ userContactImpl.setProPhone(proPhone);
+ }
+
+ userContactImpl.resetOriginalValues();
+
+ return userContactImpl;
+ }
+
+ public long contactId;
+ public long userId;
+ public String address;
+ public boolean isAddressAuthorized;
+ public String mail;
+ public boolean isMailAuthorized;
+ public String mobilePhone;
+ public String mobilePhoneSMS;
+ public String homePhone;
+ public String proPhone;
+}
\ No newline at end of file