Coverage Report - org.directdemocracyportal.democracy.model.application.RoleAction
 
Classes in this File Line Coverage Branch Coverage Complexity
RoleAction
37%
3/8
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.application;
 6  
 
 7  
 import javax.persistence.Entity;
 8  
 import javax.persistence.GeneratedValue;
 9  
 import javax.persistence.GenerationType;
 10  
 import javax.persistence.Id;
 11  
 
 12  
 import org.directdemocracyportal.democracy.model.core.BaseEntity;
 13  
 import org.hibernate.annotations.Cache;
 14  
 import org.hibernate.annotations.CacheConcurrencyStrategy;
 15  
 
 16  
 /**
 17  
  * The Class RoleAction.
 18  
  */
 19  
 @Entity
 20  
 @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
 21  
 public class RoleAction extends BaseEntity
 22  
 {
 23  
 
 24  
     /** The Constant serialVersionUID. */
 25  
     private static final long serialVersionUID = -6782412725326506653L;
 26  
 
 27  
     /** The id. */
 28  
     private Long id;
 29  
 
 30  
     /** The action. */
 31  
     private Action action;
 32  
 
 33  
     /**
 34  
      * Instantiates a new role action.
 35  
      */
 36  1
     public RoleAction() {
 37  1
     }
 38  
 
 39  
     /*
 40  
      * (non-Javadoc)
 41  
      *
 42  
      * @see org.directdemocracyportal.democracy.model.core.BaseEntity#getId()
 43  
      */
 44  
     @Override
 45  
     @Id
 46  
     @GeneratedValue(strategy = GenerationType.AUTO)
 47  
     public Long getId() {
 48  1
         return this.id;
 49  
     }
 50  
 
 51  
     /**
 52  
      * Sets the id.
 53  
      *
 54  
      * @param id the new id
 55  
      */
 56  
     public void setId(Long id) {
 57  0
         this.id = id;
 58  0
     }
 59  
 
 60  
     /**
 61  
      * Gets the action.
 62  
      *
 63  
      * @return the action
 64  
      */
 65  
     public Action getAction() {
 66  0
         return action;
 67  
     }
 68  
 
 69  
     /**
 70  
      * Sets the action.
 71  
      *
 72  
      * @param action the new action
 73  
      */
 74  
     public void setAction(Action action) {
 75  0
         this.action = action;
 76  0
     }
 77  
 }