1
2
3
4
5 package org.directdemocracyportal.democracy.model.world;
6
7 import javax.persistence.CascadeType;
8 import javax.persistence.Entity;
9 import javax.persistence.JoinColumn;
10 import javax.persistence.ManyToOne;
11 import javax.persistence.OneToOne;
12
13 import org.hibernate.annotations.Cache;
14 import org.hibernate.annotations.CacheConcurrencyStrategy;
15
16 /***
17 * The Class Issue.
18 */
19 @Entity
20 @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
21 public class Issue extends Document
22 {
23
24 /*** The Constant serialVersionUID. */
25 private static final long serialVersionUID = 5477103732940234132L;
26
27 /*** The href. */
28 private String href;
29
30 /*** The vote result. */
31 private VoteResult voteResult;
32
33 /*** The resolution. */
34 private Resolution resolution;
35
36 /***
37 * Gets the href.
38 *
39 * @return the href
40 */
41 public String getHref() {
42 return href;
43 }
44
45 /***
46 * Sets the href.
47 *
48 * @param href the new href
49 */
50 public void setHref(String href) {
51 this.href = href;
52 }
53
54 /***
55 * Gets the resolution.
56 *
57 * @return the resolution
58 */
59 @ManyToOne
60 public Resolution getResolution() {
61 return resolution;
62 }
63
64 /***
65 * Sets the resolution.
66 *
67 * @param resolution the new resolution
68 */
69 public void setResolution(Resolution resolution) {
70 this.resolution = resolution;
71 }
72
73 /***
74 * Gets the vote result.
75 *
76 * @return the vote result
77 */
78 @OneToOne(cascade = CascadeType.ALL)
79 @JoinColumn
80 public VoteResult getVoteResult() {
81 return voteResult;
82 }
83
84 /***
85 * Sets the vote result.
86 *
87 * @param voteResult the new vote result
88 */
89 public void setVoteResult(VoteResult voteResult) {
90 this.voteResult = voteResult;
91 }
92
93
94 }