chore: Update Dataset constructor to include URL parameter
This commit is contained in:
parent
056ea0885f
commit
8820f1d5ef
@ -11,7 +11,6 @@ import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.web.config.EnableSpringDataWebSupport;
|
||||
import org.springframework.data.domain.Sort;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
@RestController
|
||||
|
@ -41,7 +41,7 @@ public class Dataset {
|
||||
|
||||
private String[] categories;
|
||||
|
||||
public Dataset(String title, String abst, String description, String author, String[] categories, Type type) {
|
||||
public Dataset(String title, String abst, String description, String author, URL url, String[] categories, Type type) {
|
||||
|
||||
this.raiting = 0;
|
||||
this.votes = 0;
|
||||
|
@ -1,5 +1,6 @@
|
||||
package de.uni_passau.fim.PADAS.group3.DataDash.model;
|
||||
|
||||
import java.net.URL;
|
||||
import java.sql.Date;
|
||||
import java.util.List;
|
||||
|
||||
@ -22,7 +23,7 @@ public class LoadDummyDatabase {
|
||||
|
||||
return args -> {
|
||||
for (int i = 0; i < 100; i++) {
|
||||
Dataset dataset = new Dataset("Title" + i, "Abst" + i, "Description" + i, "Author" + i, new Date(0), new String[]{"Category" + i}, Type.API);
|
||||
Dataset dataset = new Dataset("Title" + i, "Abst" + i, "Description" + i, "Author" + i,null, new String[]{"Category" + i}, Type.API);
|
||||
repository.save(dataset);
|
||||
log.info("Preloading" + repository.save(dataset));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user