siteCurrencyClass.setRecCreateBy(userId);
siteCurrencyClass.setRecCreateDatetime(new Date(System.currentTimeMillis()));
em.persist(siteCurrencyClass);
site.setSiteCurrencyClassDefault(siteCurrencyClass);
Category category = new Category();
category.setCatNaturalKey("");
category.setSeqNum(0);
category.setPublished(Constants.VALUE_YES);
category.setSite(site);
category.setCatId(null);
category.setRecUpdateBy(userId);
category.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
category.setRecCreateBy(userId);
category.setRecCreateDatetime(new Date(System.currentTimeMillis()));
category.setMenus(null);
CategoryLanguage categoryLanguage = new CategoryLanguage();
categoryLanguage.setCatTitle("Home");
categoryLanguage.setCatShortTitle("Home");
categoryLanguage.setCatDesc("");
categoryLanguage.setRecUpdateBy(userId);
categoryLanguage.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
categoryLanguage.setRecCreateBy(userId);
categoryLanguage.setRecCreateDatetime(new Date(System.currentTimeMillis()));
categoryLanguage.setSiteProfileClass(siteProfileClass);
categoryLanguage.setCategory(category);
category.setCategoryLanguage(categoryLanguage);
em.persist(categoryLanguage);
category.setCategoryLanguages(null);
em.persist(category);
CustomerClass customerClass = new CustomerClass();
customerClass.setCustClassName(Constants.CUSTOMER_CLASS_REGULAR);
customerClass.setSystemRecord(Constants.VALUE_YES);