Examples of CmsContent


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

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

  public CmsContent getCmsContentById(final Long cmsContentId, Object... params) {
        Criteria criteria = createDefaultCriteria(CmsContent.class);
        criteria.add(Restrictions.eq("id", cmsContentId));
        CmsContent cmsContent = (CmsContent) criteria.uniqueResult();
        return cmsContent;
  }
View Full Code Here

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

    cmsContent.setDateUpdate(new Date());
        if (cmsContent.getId() != null) {
            if(em.contains(cmsContent)){
                em.refresh(cmsContent);
            }
            CmsContent mergedCmsContent = em.merge(cmsContent);
            em.flush();
            return mergedCmsContent;
        } else {
            em.persist(cmsContent);
            return cmsContent;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.