Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package data;
- import java.sql.Date;
- import javax.persistence.*;
- @Entity
- @Table(name="forms")
- public class Forms {
- @Id @GeneratedValue
- Long id;
- String name;
- String type;
- String description;
- String information;
- String complete;
- Date create_date;
- String create_user;
- Date touch_date;
- String touch_user;
- // private List<Questions> question;
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getType() {
- return type;
- }
- public void setType(String type) {
- this.type = type;
- }
- public String getDescription() {
- return description;
- }
- public void setDescription(String description) {
- this.description = description;
- }
- /**
- * @param information the information to set
- */
- public void setInformation(String information) {
- this.information = information;
- }
- /**
- * @return the information
- */
- public String getInformation() {
- return information;
- }
- /**
- * @param complete the complete to set
- */
- public void setComplete(String complete) {
- this.complete = complete;
- }
- /**
- * @return the complete
- */
- public String getComplete() {
- return complete;
- }
- /**
- * @param create_date the create_date to set
- */
- public void setCreate_date(Date create_date) {
- this.create_date = create_date;
- }
- /**
- * @return the create_date
- */
- public Date getCreate_date() {
- return create_date;
- }
- /**
- * @param create_user the create_user to set
- */
- public void setCreate_user(String create_user) {
- this.create_user = create_user;
- }
- /**
- * @return the create_user
- */
- public String getCreate_user() {
- return create_user;
- }
- /**
- * @param touch_date the touch_date to set
- */
- public void setTouch_date(Date touch_date) {
- this.touch_date = touch_date;
- }
- /**
- * @return the touch_date
- */
- public Date getTouch_date() {
- return touch_date;
- }
- /**
- * @param touch_user the touch_user to set
- */
- public void setTouch_user(String touch_user) {
- this.touch_user = touch_user;
- }
- /**
- * @return the touch_user
- */
- public String getTouch_user() {
- return touch_user;
- }
- /**
- * @param question the question to set
- */
- // public void setQuestion(List<Questions> question) {
- // this.question = question;
- // }
- /**
- * @return the question
- */
- // @OneToMany(mappedBy="questions",
- // targetEntity=Questions.class,
- // fetch=FetchType.EAGER,
- // cascade=CascadeType.ALL)
- // public List<Questions> getQuestion() {
- // return question;
- // }
- }
Advertisement
Add Comment
Please, Sign In to add comment