mirror of
https://github.com/ArenMg/aren.git
synced 2024-12-23 07:19:46 +00:00
Merge pull request #14 from Arimihanta/main
ajouter l'attribut type dans Category
This commit is contained in:
commit
bb0168d25d
1 changed files with 21 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue