01: package app.data.test;
02:
03: import java.util.List;
04: import javax.persistence.Entity;
05: import javax.persistence.Id;
06: import javax.persistence.OneToMany;
07: import javax.persistence.Table;
08:
09: /**
10: * Bug Type entity bean.
11: */
12: @Entity
13: @Table(name="b_bug_type")
14: public class BugType {
15:
16: @Id
17: String code;
18:
19: String title;
20:
21: @OneToMany
22: List<Bug> bugs;
23:
24: /**
25: * Return code.
26: */
27: public String getCode() {
28: return code;
29: }
30:
31: /**
32: * Set code.
33: */
34: public void setCode(String code) {
35: this .code = code;
36: }
37:
38: /**
39: * Return title.
40: */
41: public String getTitle() {
42: return title;
43: }
44:
45: /**
46: * Set title.
47: */
48: public void setTitle(String title) {
49: this .title = title;
50: }
51:
52: /**
53: * Return bugs.
54: */
55: public List<Bug> getBugs() {
56: return bugs;
57: }
58:
59: /**
60: * Set bugs.
61: */
62: public void setBugs(List<Bug> bugs) {
63: this.bugs = bugs;
64: }
65:
66: }
|