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.common;
7   
8   import javax.persistence.DiscriminatorValue;
9   import javax.persistence.Entity;
10  
11  import org.hibernate.annotations.Cache;
12  import org.hibernate.annotations.CacheConcurrencyStrategy;
13  
14  /***
15   * The Class RegisteredUser.
16   */
17  @Entity
18  @DiscriminatorValue("RegisteredUser")
19  @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
20  public class RegisteredUser extends User {
21  
22      /*** The Constant serialVersionUID. */
23      private static final long serialVersionUID = -1381199844545595026L;
24  
25      /*** The email. */
26      private String email;
27  
28      /*** The password. */
29      private String password;
30  
31      /*** The username. */
32      private String username;
33  
34      /***
35       * Instantiates a new registered user.
36       */
37      public RegisteredUser() {
38      }
39  
40      /***
41       * Gets the email.
42       *
43       * @return the email
44       */
45      public String getEmail() {
46          return email;
47      }
48  
49      /***
50       * Gets the password.
51       *
52       * @return the password
53       */
54      public String getPassword() {
55          return password;
56      }
57  
58      /***
59       * Gets the username.
60       *
61       * @return the username
62       */
63      public String getUsername() {
64          return username;
65      }
66  
67      /***
68       * Sets the email.
69       *
70       * @param email the new email
71       */
72      public void setEmail(final String email) {
73          this.email = email;
74      }
75  
76      /***
77       * Sets the password.
78       *
79       * @param password the new password
80       */
81      public void setPassword(final String password) {
82          this.password = password;
83      }
84  
85      /***
86       * Sets the username.
87       *
88       * @param username the new username
89       */
90      public void setUsername(final String username) {
91          this.username = username;
92      }
93  }