Coverage Report - org.directdemocracyportal.democracy.model.application.Application
 
Classes in this File Line Coverage Branch Coverage Complexity
Application
40%
2/5
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 java.util.HashSet;
 8  
 import java.util.Set;
 9  
 
 10  
 import javax.persistence.Entity;
 11  
 import javax.persistence.FetchType;
 12  
 import javax.persistence.ManyToMany;
 13  
 
 14  
 import org.directdemocracyportal.democracy.model.core.Environment;
 15  
 import org.hibernate.annotations.Cache;
 16  
 import org.hibernate.annotations.CacheConcurrencyStrategy;
 17  
 
 18  
 /**
 19  
  * The Class Application.
 20  
  */
 21  
 @Entity
 22  
 @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
 23  1
 public class Application extends Environment
 24  
 {
 25  
 
 26  
     /** The Constant serialVersionUID. */
 27  
     private static final long serialVersionUID = -6744929275687711238L;
 28  
 
 29  
     /** The events. */
 30  1
     private Set<Event> events = new HashSet<Event>();
 31  
 
 32  
     /**
 33  
      * Gets the events.
 34  
      *
 35  
      * @return the events
 36  
      */
 37  
     @ManyToMany(fetch = FetchType.LAZY)
 38  
     public Set<Event> getEvents() {
 39  0
         return events;
 40  
     }
 41  
 
 42  
     /**
 43  
      * Sets the events.
 44  
      *
 45  
      * @param events the new events
 46  
      */
 47  
     public void setEvents(Set<Event> events) {
 48  0
         this.events = events;
 49  0
     }
 50  
 }