Merge remote-tracking branch 'origin/feature/Article' into feature/ProfSection

pull/1/head
Roxane ROSSETTO 1 year ago
commit 2ffbeaa359

@ -0,0 +1,90 @@
package SAE.ApiREST.WebService.model;
import java.time.LocalDate;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
@Entity
public class Article {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
String title;
String URL;
LocalDate dateAdded;
LocalDate datePublished;
Boolean isVisible;
Integer type;
// ArrayList<Keyword> keywords = new ArrayList<>();
public Article() {}
public Article(String title, String URL, LocalDate dateAdded, LocalDate datePublished, Boolean visibility, Integer type) {
this.title = title;
this.URL = URL;
this.dateAdded = dateAdded;
this.datePublished = datePublished;
this.isVisible = visibility;
this.type = type;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public String getURL() {
return this.URL;
}
public void setURL(String URL) {
this.URL = URL;
}
public LocalDate getDateAdded() {
return this.dateAdded;
}
public void setDateAdded(LocalDate dateAdded) {
this.dateAdded = dateAdded;
}
public LocalDate getDatePublished() {
return this.datePublished;
}
public void setDatePublished(LocalDate datePublished) {
this.datePublished = datePublished;
}
public Boolean isVisible() {
return this.isVisible;
}
public void setVisibility(Boolean isVisible) {
this.isVisible = isVisible;
}
public Integer getType() {
return this.type;
}
public void setType(Integer type) {
this.type = type;
}
/*
public List<Keyword> getKeywords() {
return this.keywords;
}
public void setKeywords(List<Keyword> keywords) {
this.keywords = keywords;
}
*/
}
Loading…
Cancel
Save