Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package data;
- import java.sql.Date;
- import javax.persistence.Entity;
- import javax.persistence.GeneratedValue;
- import javax.persistence.Id;
- import javax.persistence.Table;
- @Entity
- @Table(name="questions")
- public class Questions {
- @Id @GeneratedValue
- Long id;
- Long form_id;
- String question;
- Long correct_answer;
- char forced_hint;
- char multiple_choice;
- Long sequence;
- Date create_date;
- String create_user;
- Date touch_date;
- String touch_user;
- // Forms form;
- /**
- * @return the id
- */
- public Long getId() {
- return id;
- }
- /**
- * @param id the id to set
- */
- public void setId(Long id) {
- this.id = id;
- }
- /**
- * @return the form_id
- */
- public Long getForm_id() {
- return form_id;
- }
- /**
- * @param form_id the form_id to set
- */
- public void setForm_id(Long form_id) {
- this.form_id = form_id;
- }
- /**
- * @return the question
- */
- public String getQuestion() {
- return question;
- }
- /**
- * @param question the question to set
- */
- public void setQuestion(String question) {
- this.question = question;
- }
- /**
- * @return the correctAnswer
- */
- public Long getCorrect_Answer() {
- return correct_answer;
- }
- /**
- * @param correctAnswer the correctAnswer to set
- */
- public void setCorrect_Answer(Long correct_answer) {
- this.correct_answer = correct_answer;
- }
- /**
- * @return the forcedHint
- */
- public char getForced_Hint() {
- return forced_hint;
- }
- /**
- * @param forcedHint the forcedHint to set
- */
- public void setForced_Hint(char forced_hint) {
- this.forced_hint = forced_hint;
- }
- /**
- * @return the multipleChoice
- */
- public char getMultiple_Choice() {
- return multiple_choice;
- }
- /**
- * @param multipleChoice the multipleChoice to set
- */
- public void setMultiple_SChoice(char multiple_choice) {
- this.multiple_choice = multiple_choice;
- }
- /**
- * @return the sequence
- */
- public Long getSequence() {
- return sequence;
- }
- /**
- * @param sequence the sequence to set
- */
- public void setSequence(Long sequence) {
- this.sequence = sequence;
- }
- /**
- * @return the create_date
- */
- public Date getCreate_date() {
- return create_date;
- }
- /**
- * @param create_date the create_date to set
- */
- public void setCreate_date(Date create_date) {
- this.create_date = create_date;
- }
- /**
- * @return the create_user
- */
- public String getCreate_user() {
- return create_user;
- }
- /**
- * @param create_user the create_user to set
- */
- public void setCreate_user(String create_user) {
- this.create_user = create_user;
- }
- /**
- * @return the touch_date
- */
- public Date getTouch_date() {
- return touch_date;
- }
- /**
- * @param touch_date the touch_date to set
- */
- public void setTouch_date(Date touch_date) {
- this.touch_date = touch_date;
- }
- /**
- * @return the touch_user
- */
- public String getTouch_user() {
- return touch_user;
- }
- /**
- * @param touch_user the touch_user to set
- */
- public void setTouch_user(String touch_user) {
- this.touch_user = touch_user;
- }
- /**
- * @param form the form to set
- */
- // public void setForm(Forms form) {
- // this.form = form;
- // }
- /**
- * @return the form
- */
- // @ManyToOne
- // @JoinColumn(name="form_id", nullable = false, insertable=false, updatable=false)
- // public Forms getForm() {
- // return form;
- // }
- }
Advertisement
Add Comment
Please, Sign In to add comment