query.setParameter("customAttribGroupId", Format.getLong(form.getCustomAttribGroupId()));
Iterator<?> iterator = query.getResultList().iterator();
Vector<ItemAttributeDetailDisplayForm> itemAttributeDetails = new Vector<ItemAttributeDetailDisplayForm>();
boolean itemAttributeLangFlag = false;
while (iterator.hasNext()) {
CustomAttributeDetail customAttributeDetail = (CustomAttributeDetail) iterator.next();
/*
ItemAttributeDetail itemAttributeDetail = new ItemAttributeDetail();
itemAttributeDetail.setItem(item);
itemAttributeDetail.setCustomAttributeDetail(customAttributeDetail);
itemAttributeDetail.setRecUpdateBy(adminBean.getUser().getUserId());
itemAttributeDetail.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
itemAttributeDetail.setRecCreateBy(adminBean.getUser().getUserId());
itemAttributeDetail.setRecCreateDatetime(new Date(System.currentTimeMillis()));
ItemAttributeDetailLanguage itemAttributeDetailLanguage = new ItemAttributeDetailLanguage();
itemAttributeDetailLanguage.setItemAttribDetailValue("");
itemAttributeDetailLanguage.setRecUpdateBy(adminBean.getUser().getUserId());
itemAttributeDetailLanguage.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
itemAttributeDetailLanguage.setRecCreateBy(adminBean.getUser().getUserId());
itemAttributeDetailLanguage.setRecCreateDatetime(new Date(System.currentTimeMillis()));
SiteProfileClass siteProfileClass = SiteProfileClassDAO.load(form.getSiteProfileClassDefaultId());
itemAttributeDetailLanguage.setSiteProfileClass(siteProfileClass);
if (customAttributeDetail.getCustomAttribute().getCustomAttribTypeCode() == Constants.CUSTOM_ATTRIBUTE_TYPE_USER_SELECT_DROPDOWN) {
CustomAttributeOption customAttributeOption = null;
for (CustomAttributeOption option : customAttributeDetail.getCustomAttribute().getCustomAttributeOptions()) {
customAttributeOption = option;
break;
}
itemAttributeDetail.setCustomAttributeOption(customAttributeOption);
}
em.persist(itemAttributeDetailLanguage);
itemAttributeDetail.setItemAttributeDetailLanguage(itemAttributeDetailLanguage);
em.persist(itemAttributeDetail);
*/
ItemAttributeDetailDisplayForm displayForm = new ItemAttributeDetailDisplayForm();
displayForm.setCustomAttribId(customAttributeDetail.getCustomAttribute().getCustomAttribId().toString());
displayForm.setCustomAttribTypeCode(String.valueOf(customAttributeDetail.getCustomAttribute().getCustomAttribTypeCode()));
displayForm.setCustomAttribDetailId(customAttributeDetail.getCustomAttribDetailId().toString());
displayForm.setCustomAttribName(customAttributeDetail.getCustomAttribute().getCustomAttribName());
displayForm.setCustomAttribTypeCode(String.valueOf(customAttributeDetail.getCustomAttribute().getCustomAttribTypeCode()));
displayForm.setItemAttribDetailValue("");
itemAttributeDetails.add(displayForm);
}
form.setItemAttribDetailValueLangFlag(itemAttributeLangFlag);
ItemAttributeDetailDisplayForm[] itemAttributeDetailDisplayForms = new ItemAttributeDetailDisplayForm[itemAttributeDetails.size()];