Subversion Repositories SmartDukaan

Rev

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

Rev 31487 Rev 31488
Line 244... Line 244...
244
 
244
 
245
			Brand brand = new Brand();
245
			Brand brand = new Brand();
246
			brand.setName(brandName);
246
			brand.setName(brandName);
247
			brand.setLogoUrl((String) mobileBrand.get("url"));
247
			brand.setLogoUrl((String) mobileBrand.get("url"));
248
			brandsRepository.persist(brand);
248
			brandsRepository.persist(brand);
249
 
-
 
-
 
249
			Double category = (Double) mobileBrand.get("categoryId");
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((String) mobileBrand.get("categoryId"));
252
			brandCategory.setCategoryId(category.toString());
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
		}