Merge pull request #14 from Arimihanta/main

ajouter l'attribut type dans Category
This commit is contained in:
ArenMg 2021-11-15 12:22:09 +03:00 committed by GitHub
commit bb0168d25d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,10 +5,7 @@ import java.util.Date;
import java.util.TreeSet;
import java.util.SortedSet;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.*;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlTransient;
@ -53,6 +50,10 @@ public class Category extends AbstractEntity implements Serializable {
@Column(name = "last_comment_date")
private Date lastCommentDate;
@Enumerated(EnumType.STRING)
@Column(name = "type")
private Debate.Type type= Debate.Type.BASIC ;
/**
*
* @return
@ -150,6 +151,22 @@ public class Category extends AbstractEntity implements Serializable {
this.documentsCount = documentsCount;
}
/**
*
* @return
*/
public Debate.Type getType() {
return type;
}
/**
*
* @param type
*/
public void setType(Debate.Type type) {
this.type = type;
}
/**
*
* @return