Coverage Report - org.directdemocracyportal.democracy.model.world.Issue
 
Classes in this File Line Coverage Branch Coverage Complexity
Issue
10%
1/10
N/A
1
 
 1  
 /*
 2  
 Copyright 2010 James Pether Sörling Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
 3  
         $Id
 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  1
 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  0
         return href;
 43  
     }
 44  
 
 45  
     /**
 46  
      * Sets the href.
 47  
      *
 48  
      * @param href the new href
 49  
      */
 50  
     public void setHref(String href) {
 51  0
         this.href = href;
 52  0
     }
 53  
 
 54  
     /**
 55  
      * Gets the resolution.
 56  
      *
 57  
      * @return the resolution
 58  
      */
 59  
     @ManyToOne
 60  
     public Resolution getResolution() {
 61  0
         return resolution;
 62  
     }
 63  
 
 64  
     /**
 65  
      * Sets the resolution.
 66  
      *
 67  
      * @param resolution the new resolution
 68  
      */
 69  
     public void setResolution(Resolution resolution) {
 70  0
         this.resolution = resolution;
 71  0
     }
 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  0
         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  0
         this.voteResult = voteResult;
 91  0
     }
 92  
 
 93  
 
 94  
 }