feat: Add dataRepository interface and dataset class
This commit is contained in:
		@@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					package de.uni_passau.fim.PADAS.group3.DataDash.model;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import java.util.UUID;
 | 
				
			||||||
 | 
					import org.springframework.data.jpa.repository.JpaRepository;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					public interface dataRepository extends JpaRepository<dataset, UUID>{
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -35,6 +35,20 @@ public class dataset {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private String[] Categories;
 | 
					    private String[] Categories;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public dataset(String title, String abst, String description, String author, Date date, String[] categories, type type) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        this.raiting = 0;
 | 
				
			||||||
 | 
					        this.votes = 0;
 | 
				
			||||||
 | 
					        this.title = title;
 | 
				
			||||||
 | 
					        this.abst = abst;
 | 
				
			||||||
 | 
					        this.description = description;
 | 
				
			||||||
 | 
					        this.author = author;
 | 
				
			||||||
 | 
					        this.date = date;
 | 
				
			||||||
 | 
					        this.Categories = categories;
 | 
				
			||||||
 | 
					        this.type = type;
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public String getAbst() {
 | 
					    public String getAbst() {
 | 
				
			||||||
        return abst;
 | 
					        return abst;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user