1
2
3
4
5
6 package com.hack23.cia.model.application.impl.user;
7
8 import java.util.Date;
9
10 import javax.persistence.DiscriminatorValue;
11 import javax.persistence.Entity;
12
13 import org.hibernate.annotations.Cache;
14 import org.hibernate.annotations.CacheConcurrencyStrategy;
15
16 import com.hack23.cia.model.application.impl.common.UserSession;
17
18 /***
19 * The Class BallotActionEvent.
20 */
21 @Entity
22 @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
23 @DiscriminatorValue("BallotActionEvent")
24 public class BallotActionEvent extends AbstractParliamentActionEvent {
25
26 /*** The Constant serialVersionUID. */
27 private static final long serialVersionUID = 1L;
28
29 /*** The ballot id. */
30 private Long ballotId;
31
32 /***
33 * Instantiates a new ballot action event.
34 */
35 public BallotActionEvent() {
36 }
37
38 /***
39 * Instantiates a new ballot action event.
40 *
41 * @param createdDate the created date
42 * @param userSession the user session
43 * @param ballotId the ballot id
44 */
45 public BallotActionEvent(final Date createdDate,
46 final UserSession userSession, final Long ballotId) {
47 super(createdDate, userSession);
48 this.ballotId = ballotId;
49 }
50
51 /***
52 * Gets the ballot id.
53 *
54 * @return the ballot id
55 */
56 public Long getBallotId() {
57 return ballotId;
58 }
59
60 /***
61 * Sets the ballot id.
62 *
63 * @param ballotId the new ballot id
64 */
65 public void setBallotId(final Long ballotId) {
66 this.ballotId = ballotId;
67 }
68 }