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   
6   package com.hack23.cia.model.application.impl.user;
7   
8   import java.util.Date;
9   
10  import javax.persistence.DiscriminatorValue;
11  import javax.persistence.Entity;
12  
13  import org.hibernate.annotations.Cache;
14  import org.hibernate.annotations.CacheConcurrencyStrategy;
15  
16  import com.hack23.cia.model.application.impl.common.UserSession;
17  
18  /***
19   * The Class CommitteeReportActionEvent.
20   */
21  @Entity
22  @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
23  @DiscriminatorValue("CommitteeReportActionEvent")
24  public class CommitteeReportActionEvent extends AbstractParliamentActionEvent {
25  
26      /*** The Constant serialVersionUID. */
27      private static final long serialVersionUID = 1L;
28  
29      /*** The committee report id. */
30      private Long committeeReportId;
31  
32      /***
33       * Instantiates a new committee report action event.
34       */
35      public CommitteeReportActionEvent() {
36      }
37  
38      /***
39       * Instantiates a new committee report action event.
40       *
41       * @param createdDate the created date
42       * @param userSession the user session
43       * @param commiteeReportId the commitee report id
44       */
45      public CommitteeReportActionEvent(final Date createdDate,
46              final UserSession userSession, final Long commiteeReportId) {
47          super(createdDate, userSession);
48          this.committeeReportId = commiteeReportId;
49      }
50  
51      /***
52       * Gets the committee report id.
53       *
54       * @return the committee report id
55       */
56      public Long getCommitteeReportId() {
57          return committeeReportId;
58      }
59  
60      /***
61       * Sets the committee report id.
62       *
63       * @param committeeReportId the new committee report id
64       */
65      public void setCommitteeReportId(final Long committeeReportId) {
66          this.committeeReportId = committeeReportId;
67      }
68  
69  }