ArrayList<Long> products = new ArrayList<Long>();
ArrayList<Long> slots = new ArrayList<Long>();
publisherDAO.put(publisher);
publisher.setCompanyId(company.getId());
for (int k = 0; k < 5; k++) {
Product product = new Product();
product.setName("Product" + k + "-" + j + "-" + i);
product.setSlogan("Slogan");
product.setText("Text");
product.setLink("Link");
productDAO.put(product);
product.setPublisherId(publisher.getId());
products.add(product.getId());
for (int n = 0; n < 10; n++) {
Resource resource = new Resource();
resource.setFilename("resource" + n + ".jpeg");
resource.setImageURL("https://lh3.googleusercontent.com/-hQtlZHxpmA0/SMv3w4UUqcI/AAAAAAAACAQ/nPEx0-f9L6Y/s912/DSC02207.JPG");
resource.setUUID((UUID.randomUUID().toString()));
resource.setProductId(product.getId());
resourceDAO.put(resource);
}
productDAO.put(product);
}
for (int n = 0; n < 5; n++) {