View Javadoc

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.Transient;
9   
10  import org.directdemocracyportal.democracy.model.world.PoliticalParty;
11  import org.hibernate.annotations.Cache;
12  import org.hibernate.annotations.CacheConcurrencyStrategy;
13  
14  /***
15   * The Class OnlinePoliticalParty.
16   */
17  @Entity
18  @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
19  public class OnlinePoliticalParty extends PoliticalParty
20  {
21  
22      /*** The Constant serialVersionUID. */
23      private static final long serialVersionUID = 5623692616893657617L;
24  
25      /***
26       * Instantiates a new online political party.
27       */
28      public OnlinePoliticalParty() {
29      }
30  
31      /*
32       * (non-Javadoc)
33       *
34       * @see org.directdemocracyportal.democracy.model.world.PoliticalParty#isOffline()
35       */
36      @Override
37      @Transient
38      public boolean isOffline() {
39          return false;
40      }
41  }