View Javadoc

1   /*
2    * Copyright (C) 2007 Alf Mikula
3    * 
4    * This file is part of PromoteGo.
5    *
6    * PromoteGo is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU General Public License as published by
8    * the Free Software Foundation, either version 3 of the License, or
9    * (at your option) any later version.
10   *
11   * PromoteGo is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU General Public License for more details.
15   *
16   * You should have received a copy of the GNU General Public License
17   * along with PromoteGo.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  package org.promotego.beans;
20  
21  import java.util.Date;
22  
23  import javax.persistence.Entity;
24  import javax.persistence.OneToOne;
25  import javax.persistence.Temporal;
26  import javax.persistence.TemporalType;
27  
28  
29  @Entity
30  public class ValidationRecord extends BeanSupport<ValidationRecord>
31  {
32      private User m_user;
33      private String m_validationKey;
34      private Date m_creationDate;
35      
36      @OneToOne
37      public User getUser() {
38  		return m_user;
39  	}
40  
41  	public void setUser(User user) {
42  		m_user = user;
43  	}
44  
45  	public String getValidationKey()
46      {
47          return m_validationKey;
48      }
49      
50      public void setValidationKey(String validationString)
51      {
52          m_validationKey = validationString;
53      }
54  
55      @Temporal(TemporalType.TIMESTAMP)
56      public Date getCreationDate()
57      {
58          return m_creationDate;
59      }
60  
61      public void setCreationDate(Date creationDate)
62      {
63          m_creationDate = creationDate;
64      }
65  }