@@ -0,0 +1,1804 @@
+package gr.quizbomb.model;%0A%0Aimport static javax.persistence.GenerationType.IDENTITY;%0A%0Aimport java.sql.Date;%0Aimport java.util.List;%0A%0Aimport javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.JoinColumn;%0Aimport javax.persistence.OneToMany;%0Aimport javax.persistence.Table;%0Aimport javax.persistence.Temporal;%0Aimport javax.persistence.TemporalType;%0A%0A@Entity%0A@Table(name =%22question%22)%0A%0Apublic class Question %7B%0A%0A%09%0A%09@Id%0A%09@GeneratedValue(strategy = IDENTITY)%0A%09@Column(name = %22id%22, unique = true, nullable = false)%0A%09private int id;%0A%09%0A%09@Column(name = %22content%22)%0A%09private String text;%0A%09%0A%09@Column(name = %22isapproved%22,columnDefinition = %22TINYINT%22)%0A%09private boolean approved ;%0A%09%0A%09@Column(name = %22pcd_id%22,columnDefinition = %22UNSIGNED INT(10)%22)%0A%09private int pcd ;%0A%09%0A%09@Column(updatable = false)%0A%09private Date created_at;%0A%09%0A%09@OneToMany(mappedBy=%22question_id%22)%0A%09private  List%3CAnswer%3E answer;%0A%09%0A%09public Question(int id,String text,int pcd )%0A%09%7B%0A%09%09this.id = id;%0A%09%09this.text = text;%0A%09%09this.approved = false;%0A%09%09this.pcd = pcd;%0A%09%09%0A%0A%09%7D%0A%0A%09public int getId() %7B%0A%09%09return id;%0A%09%7D%0A%0A%09public void setId(int id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%0A%09public String getText() %7B%0A%09%09return text;%0A%09%7D%0A%0A%09public void setText(String text) %7B%0A%09%09this.text = text;%0A%09%7D%0A%0A%09public boolean isApproved() %7B%0A%09%09return approved;%0A%09%7D%0A%0A%09public void setApproved(boolean approved) %7B%0A%09%09this.approved = approved;%0A%09%7D%0A%0A%09public int getPcd() %7B%0A%09%09return pcd;%0A%09%7D%0A%0A%09public void setPcd(int pcd) %7B%0A%09%09this.pcd = pcd;%0A%09%7D%0A%0A%09public Date getCreated_at() %7B%0A%09%09return created_at;%0A%09%7D%0A%0A%09public void setCreated_at(Date created_at) %7B%0A%09%09this.created_at = created_at;%0A%09%7D%0A%09%0A%09public List%3CAnswer%3E getAnswerList() %7B%0A%09%09return answer;%0A%09%7D%0A%0A%09public void setAnswerList(List%3CAnswer%3E ans) %7B%0A%09%09this.answer = ans;%0A%09%7D%0A%7D%0A%09

upDated Question Entity