feat: Add dataRepository interface and dataset class

This commit is contained in:
Erik Foris 2024-06-14 16:47:51 +02:00
parent b189a8f022
commit 14a9bbd56a
2 changed files with 22 additions and 0 deletions

View File

@ -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>{
}

View File

@ -35,6 +35,20 @@ public class dataset {
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() {
return abst;