feat: Add dataRepository interface and dataset class
This commit is contained in:
parent
b189a8f022
commit
14a9bbd56a
@ -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;
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user