01: package app.data;
02:
03: import javax.persistence.Entity;
04: import javax.persistence.Id;
05: import javax.persistence.OneToOne;
06: import javax.persistence.Table;
07:
08: /**
09: * Role Test entity bean.
10: */
11: @Entity
12: @Table(name="s_role_test")
13: public class RoleTest {
14:
15: @Id
16: Integer id;
17:
18: String acol;
19:
20: @OneToOne
21: Role role;
22:
23: /**
24: * Return id.
25: */
26: public Integer getId() {
27: return id;
28: }
29:
30: /**
31: * Set id.
32: */
33: public void setId(Integer id) {
34: this .id = id;
35: }
36:
37: /**
38: * Return acol.
39: */
40: public String getAcol() {
41: return acol;
42: }
43:
44: /**
45: * Set acol.
46: */
47: public void setAcol(String acol) {
48: this .acol = acol;
49: }
50:
51: /**
52: * Return role.
53: */
54: public Role getRole() {
55: return role;
56: }
57:
58: /**
59: * Set role.
60: */
61: public void setRole(Role role) {
62: this.role = role;
63: }
64:
65: }
|