Package com.jada.jpa.entity

Examples of com.jada.jpa.entity.ItemDescSearch


        if (language.getSiteProfileClass().getSiteProfileClassId().equals(siteProfileClass.getSiteProfileClassId())) {
          itemLanguage = language;
          break;
        }
      }
      ItemDescSearch itemDescSearch = new ItemDescSearch();
      if (itemLanguage == null || itemLanguage.getItemShortDesc() == null) {
        itemDescSearch.setItemShortDesc(itemLanguageDefault.getItemShortDesc());
      }
      else {
        itemDescSearch.setItemShortDesc(itemLanguage.getItemShortDesc());
      }
      itemDescSearch.setRecUpdateBy(adminBean.getUser().getUserId());
      itemDescSearch.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      itemDescSearch.setRecCreateBy(adminBean.getUser().getUserId());
      itemDescSearch.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      itemDescSearch.setSiteProfileClass(siteProfileClass);
      itemDescSearch.setItem(item);
      em.persist(itemDescSearch);
      item.getItemDescSearches().add(itemDescSearch);
    }
  }
View Full Code Here


        if (language.getSiteProfileClass().getSiteProfileClassId().equals(siteProfileClass.getSiteProfileClassId())) {
          itemLanguage = language;
          break;
        }
      }
      ItemDescSearch itemDescSearch = new ItemDescSearch();
      if (itemLanguage == null || itemLanguage.getItemShortDesc() == null) {
        itemDescSearch.setItemShortDesc(itemLanguageDefault.getItemShortDesc());
      }
      else {
        itemDescSearch.setItemShortDesc(itemLanguage.getItemShortDesc());
      }
      itemDescSearch.setRecUpdateBy(adminBean.getUser().getUserId());
      itemDescSearch.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      itemDescSearch.setRecCreateBy(adminBean.getUser().getUserId());
      itemDescSearch.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      itemDescSearch.setSiteProfileClass(siteProfileClass);
      em.persist(itemDescSearch);
      item.getItemDescSearches().add(itemDescSearch);
    }
  }
View Full Code Here

TOP

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

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.