Package com.jada.jpa.entity

Examples of com.jada.jpa.entity.ContentDescSearch


        if (language.getSiteProfileClass().getSiteProfileClassId().equals(siteProfileClass.getSiteProfileClassId())) {
          contentLanguage = language;
          break;
        }
      }
      ContentDescSearch contentDescSearch = new ContentDescSearch();
      if (contentLanguage == null || contentLanguage.getContentTitle() == null) {
        contentDescSearch.setContentTitle(contentLanguageDefault.getContentTitle());
      }
      else {
        contentDescSearch.setContentTitle(contentLanguage.getContentTitle());
      }
      contentDescSearch.setRecUpdateBy(adminBean.getUser().getUserId());
      contentDescSearch.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      contentDescSearch.setRecCreateBy(adminBean.getUser().getUserId());
      contentDescSearch.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      contentDescSearch.setSiteProfileClass(siteProfileClass);
      contentDescSearch.setContent(content);
      em.persist(contentDescSearch);
      content.getContentDescSearches().add(contentDescSearch);
    }
  }
View Full Code Here


        if (language.getSiteProfileClass().getSiteProfileClassId().equals(siteProfileClass.getSiteProfileClassId())) {
          contentLanguage = language;
          break;
        }
      }
      ContentDescSearch contentDescSearch = new ContentDescSearch();
      if (contentLanguage == null || contentLanguage.getContentTitle() == null) {
        contentDescSearch.setContentTitle(contentLanguageDefault.getContentTitle());
      }
      else {
        contentDescSearch.setContentTitle(contentLanguage.getContentTitle());
      }
      contentDescSearch.setRecUpdateBy(adminBean.getUser().getUserId());
      contentDescSearch.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      contentDescSearch.setRecCreateBy(adminBean.getUser().getUserId());
      contentDescSearch.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      contentDescSearch.setSiteProfileClass(siteProfileClass);
      em.persist(contentDescSearch);
      content.getContentDescSearches().add(contentDescSearch);
    }
  }
View Full Code Here

TOP

Related Classes of com.jada.jpa.entity.ContentDescSearch

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.