1
2
3
4
5 package org.directdemocracyportal.democracy.model.world;
6
7 import javax.persistence.Entity;
8 import javax.persistence.Transient;
9
10 import org.hibernate.annotations.Cache;
11 import org.hibernate.annotations.CacheConcurrencyStrategy;
12
13 /***
14 * The Class PoliticalParty.
15 */
16 @Entity
17 @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
18 public class PoliticalParty extends Organisation
19 {
20
21 /*** The Constant serialVersionUID. */
22 private static final long serialVersionUID = 442920132355049212L;
23
24 /*** The short code. */
25 private String shortCode;
26
27 /***
28 * Gets the short code.
29 *
30 * @return the short code
31 */
32 public String getShortCode() {
33 return shortCode;
34 }
35
36 /***
37 * Sets the short code.
38 *
39 * @param shortCode the new short code
40 */
41 public void setShortCode(String shortCode) {
42 this.shortCode = shortCode;
43 }
44
45 /***
46 * Instantiates a new political party.
47 */
48 public PoliticalParty() {
49 }
50
51 /***
52 * Checks if is offline.
53 *
54 * @return true, if is offline
55 */
56 @Transient
57 public boolean isOffline() {
58 return true;
59 }
60 }