Package com.uphea.domain

Examples of com.uphea.domain.Favorites


  /**
   * Stores favorite.
   */
  public Favorites storeFavorite(Question question, User user) {
    Favorites favorites = new Favorites(question.getId(), user.getId());
    return appDao.store(favorites);
  }
View Full Code Here


  /**
   * Deletes favorite.
   */
  public void removeFavorite(Question question, User user) {
    Favorites favorites = findUserFavorite(question, user);
    if (favorites == null) {
      return;
    }
    appDao.deleteById(favorites);
  }
View Full Code Here

TOP

Related Classes of com.uphea.domain.Favorites

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.