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 PartyActionEvent.
20 */
21 @Entity
22 @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
23 @DiscriminatorValue("PartyActionEvent")
24 public class PartyActionEvent extends AbstractTopListActionEvent {
25
26 /*** The Constant serialVersionUID. */
27 private static final long serialVersionUID = 1L;
28
29 /*** The party. */
30 private String party;
31
32 /***
33 * Instantiates a new party action event.
34 */
35 public PartyActionEvent() {
36 super();
37 }
38
39 /***
40 * Instantiates a new party action event.
41 *
42 * @param createdDate the created date
43 * @param userSession the user session
44 * @param party the party
45 * @param operation the operation
46 */
47 public PartyActionEvent(final Date createdDate,
48 final UserSession userSession, final String party,
49 final Operation operation) {
50 super(createdDate, userSession, operation);
51 this.party = party;
52 }
53
54 /***
55 * Gets the party.
56 *
57 * @return the party
58 */
59 public String getParty() {
60 return party;
61 }
62
63 /***
64 * Sets the party.
65 *
66 * @param party the new party
67 */
68 public void setParty(final String party) {
69 this.party = party;
70 }
71
72 }