1
2
3
4
5 package org.directdemocracyportal.democracy.model.application;
6
7 import javax.persistence.Entity;
8 import javax.persistence.GeneratedValue;
9 import javax.persistence.GenerationType;
10 import javax.persistence.Id;
11
12 import org.directdemocracyportal.democracy.model.core.BaseEntity;
13 import org.hibernate.annotations.Cache;
14 import org.hibernate.annotations.CacheConcurrencyStrategy;
15
16 /***
17 * The Class RoleAction.
18 */
19 @Entity
20 @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
21 public class RoleAction extends BaseEntity
22 {
23
24 /*** The Constant serialVersionUID. */
25 private static final long serialVersionUID = -6782412725326506653L;
26
27 /*** The id. */
28 private Long id;
29
30 /*** The action. */
31 private Action action;
32
33 /***
34 * Instantiates a new role action.
35 */
36 public RoleAction() {
37 }
38
39
40
41
42
43
44 @Override
45 @Id
46 @GeneratedValue(strategy = GenerationType.AUTO)
47 public Long getId() {
48 return this.id;
49 }
50
51 /***
52 * Sets the id.
53 *
54 * @param id the new id
55 */
56 public void setId(Long id) {
57 this.id = id;
58 }
59
60 /***
61 * Gets the action.
62 *
63 * @return the action
64 */
65 public Action getAction() {
66 return action;
67 }
68
69 /***
70 * Sets the action.
71 *
72 * @param action the new action
73 */
74 public void setAction(Action action) {
75 this.action = action;
76 }
77 }