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: * User Status entity bean.
11: */
12: @Entity
13: @Table(name="s_user_status")
14: public class UserStatus {
15:
16: @Id
17: String code;
18:
19: String title;
20:
21: @OneToMany
22: List<User> users;
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 users.
54: */
55: public List<User> getUsers() {
56: return users;
57: }
58:
59: /**
60: * Set users.
61: */
62: public void setUsers(List<User> users) {
63: this.users = users;
64: }
65:
66: }
|