Package org.hoteia.qalingo.core.domain

Examples of org.hoteia.qalingo.core.domain.Notification


  private final Logger logger = LoggerFactory.getLogger(getClass());

  public Notification getNotificationById(final Long notificationId, Object... params) {
        Criteria criteria = createDefaultCriteria(Notification.class);
        criteria.add(Restrictions.eq("id", notificationId));
        Notification notification = (Notification) criteria.uniqueResult();
        return notification;
  }
View Full Code Here


    notification.setDateUpdate(new Date());
        if (notification.getId() != null) {
            if(em.contains(notification)){
                em.refresh(notification);
            }
            Notification mergedNotification = em.merge(notification);
            em.flush();
            return mergedNotification;
        } else {
            em.persist(notification);
            return notification;
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.domain.Notification

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.