ADD
This commit is contained in:
@@ -21,10 +21,11 @@ public class Application {
|
|||||||
int i = 1;
|
int i = 1;
|
||||||
for(String p : products){
|
for(String p : products){
|
||||||
Product product = new Product();
|
Product product = new Product();
|
||||||
|
|
||||||
|
product.setImageUrl("https://github.githubassets.com/images/modules/profile/profile-joined-github.png");
|
||||||
product.setName(p);
|
product.setName(p);
|
||||||
product.setPrice(i*10000);
|
product.setPrice(i*10000);
|
||||||
product.setStock(i*10);
|
product.setStock(i*10);
|
||||||
product.setImageUrl("https://github.githubassets.com/images/modules/profile/profile-joined-github.png");
|
|
||||||
i++;
|
i++;
|
||||||
productRepository.save(product);
|
productRepository.save(product);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user