Package com.expositds.ars.dao.entity.user

Examples of com.expositds.ars.dao.entity.user.NotificationEntity


  // ===== Basic operations ===== //
  @Override
  public Long addNotification(Notification notification) {
    Long result = null;

    NotificationEntity notificationEntity = DozerHelper.map(notification,
        NotificationEntity.class);
    result = notificationRepository.save(notificationEntity);

    return result;
  }
View Full Code Here


  @Override
  public Notification updateNotification(Notification notification) {
    Notification result = null;

    NotificationEntity notificationEntity = DozerHelper.map(notification,
        NotificationEntity.class);
    notificationEntity = notificationRepository.merge(notificationEntity);
    result = DozerHelper.map(notificationEntity, Notification.class);

    return result;
View Full Code Here

    return result;
  }

  @Override
  public void deleteNotification(Notification notification) {
    NotificationEntity notificationEntity = DozerHelper.map(notification,
        NotificationEntity.class);
    notificationRepository.delete(notificationEntity);
  }
View Full Code Here

  @Override
  public Notification getNotificationById(Long id) {
    Notification result = null;

    NotificationEntity notificationEntity = notificationRepository
        .findById(id);
    result = DozerHelper.map(notificationEntity, Notification.class);

    return result;
  }
View Full Code Here

TOP

Related Classes of com.expositds.ars.dao.entity.user.NotificationEntity

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.