Subversion Repositories SmartDukaan

Rev

Rev 31485 | Rev 31488 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31485 Rev 31487
Line 247... Line 247...
247
			brand.setLogoUrl((String) mobileBrand.get("url"));
247
			brand.setLogoUrl((String) mobileBrand.get("url"));
248
			brandsRepository.persist(brand);
248
			brandsRepository.persist(brand);
249
 
249
 
250
			BrandCategory brandCategory = new BrandCategory();
250
			BrandCategory brandCategory = new BrandCategory();
251
			brandCategory.setActive((Boolean) mobileBrand.get("active"));
251
			brandCategory.setActive((Boolean) mobileBrand.get("active"));
252
			brandCategory.setCategoryId((int) mobileBrand.get("categoryId"));
252
			brandCategory.setCategoryId((String) mobileBrand.get("categoryId"));
253
			brandCategory.setBrandId(brand.getId());
253
			brandCategory.setBrandId(brand.getId());
254
			brandCategory.setRank((int) mobileBrand.get("rank"));
254
			brandCategory.setRank((int) mobileBrand.get("rank"));
255
			brandCategoryRepository.persist(brandCategory);
255
			brandCategoryRepository.persist(brandCategory);
256
 
256
 
257
		}
257
		}