/**
* 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.ese.ils.beta.model.impl;
import com.ese.ils.beta.model.Favorite;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.CacheModel;
import java.io.Serializable;
/**
* The cache model class for representing Favorite in entity cache.
*
* @author edik
* @see Favorite
* @generated
*/
public class FavoriteCacheModel implements CacheModel<Favorite>, Serializable {
@Override
public String toString() {
StringBundler sb = new StringBundler(9);
sb.append("{favoriteId=");
sb.append(favoriteId);
sb.append(", userId=");
sb.append(userId);
sb.append(", moduleId=");
sb.append(moduleId);
sb.append(", slideId=");
sb.append(slideId);
sb.append("}");
return sb.toString();
}
public Favorite toEntityModel() {
FavoriteImpl favoriteImpl = new FavoriteImpl();
favoriteImpl.setFavoriteId(favoriteId);
favoriteImpl.setUserId(userId);
favoriteImpl.setModuleId(moduleId);
favoriteImpl.setSlideId(slideId);
favoriteImpl.resetOriginalValues();
return favoriteImpl;
}
public long favoriteId;
public long userId;
public long moduleId;
public long slideId;
}