View Javadoc

1   package de.tivsource.page.entity.feedback;
2   
3   import javax.persistence.Column;
4   import javax.persistence.Entity;
5   import javax.persistence.EnumType;
6   import javax.persistence.Enumerated;
7   import javax.persistence.FetchType;
8   import javax.persistence.Id;
9   import javax.persistence.JoinColumn;
10  import javax.persistence.Lob;
11  import javax.persistence.ManyToOne;
12  
13  import org.hibernate.search.annotations.DocumentId;
14  
15  import de.tivsource.page.entity.enumeration.Language;
16  
17  /**
18   * 
19   * @author Marc Michele
20   * 
21   */
22  @Entity
23  public class FeedbackOptionDescription {
24  
25      /**
26       * UUID des Objektes der Klasse FeedbackOptionDescription, diese ID ist
27       * einmalig über alle Objekte hinweg und sollte der bevorzugte weg sein auf
28       * bestimmte Objekte zuzugreifen.
29       */
30      @Id
31      @DocumentId
32      @Column(name = "uuid", unique = true, length=42)
33      private String uuid;
34  
35      private String name;
36  
37      @Lob
38      private String description;
39  
40      private String keywords;
41  
42      private String hints;
43  
44      @Enumerated(EnumType.STRING)
45      private Language language;
46  
47      @ManyToOne(fetch = FetchType.LAZY)
48      @JoinColumn(name = "item_uuid")
49      private FeedbackOption feedbackOption;
50  
51      public String getUuid() {
52          return uuid;
53      }
54  
55      public void setUuid(String uuid) {
56          this.uuid = uuid;
57      }
58  
59      public String getName() {
60          return name;
61      }
62  
63      public void setName(String name) {
64          this.name = name;
65      }
66  
67      public String getDescription() {
68          return description;
69      }
70  
71      public void setDescription(String description) {
72          this.description = description;
73      }
74  
75      public String getKeywords() {
76          return keywords;
77      }
78  
79      public String getHints() {
80          return hints;
81      }
82  
83      public void setHints(String hints) {
84          this.hints = hints;
85      }
86  
87      public void setKeywords(String keywords) {
88          this.keywords = keywords;
89      }
90  
91      public Language getLanguage() {
92          return language;
93      }
94  
95      public void setLanguage(Language language) {
96          this.language = language;
97      }
98  
99      public FeedbackOption getFeedbackOption() {
100         return feedbackOption;
101     }
102 
103     public void setFeedbackOption(FeedbackOption feedbackOption) {
104         this.feedbackOption = feedbackOption;
105     }
106 
107 }// Ende class