summaryrefslogtreecommitdiff
path: root/orkbasej/java/net/sf/oreka/persistent/User.java
blob: 45fa9ad967203fff6835f9825e4ad7562c0d63cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/*
 * Oreka -- A media capture and retrieval platform
 * 
 * Copyright (C) 2005, orecx LLC
 *
 * http://www.orecx.com
 *
 * This program is free software, distributed under the terms of
 * the GNU General Public License.
 * Please refer to http://www.gnu.org/copyleft/gpl.html
 *
 */

/**
 * 
 */
package net.sf.oreka.persistent;

import javax.persistence.Entity;
import javax.persistence.GeneratorType;
import javax.persistence.Id;

/**
 * @hibernate.class
 */
@Entity
public class User {
	
	private int id = 0;
	private String password = "";
	private String firstname = "";
	private String lastname = "";
	private String email = "";
	  
	/**
	 * @hibernate.property
	 * not-null="true"
	 * @return Returns the email.
	 */
	public String getEmail() {
		return email;
	}
	

	/**
	 * @param email The email to set.
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	

	/**
	 * @hibernate.property
	 * not-null="true"
	 * @return Returns the firstname.
	 */
	public String getFirstname() {
		return firstname;
	}
	

	/**
	 * @param firstname The firstname to set.
	 */
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}
	

	/**
	 * @hibernate.id
	 * generator-class="native"
	 * @return Returns the id.
	 */
	@Id(generate=GeneratorType.AUTO)
	public int getId() {
		return id;
	}
	

	/**
	 * @param id The id to set.
	 */
	@Id(generate=GeneratorType.AUTO)
	public void setId(int id) {
		this.id = id;
	}
	

	/**
	 * @hibernate.property
	 * not-null="true"
	 * @return Returns the lastname.
	 */
	public String getLastname() {
		return lastname;
	}
	

	/**
	 * @param lastname The lastname to set.
	 */
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	

	/**
	 * @hibernate.property
	 * not-null="true"
	 * @return Returns the password.
	 */
	public String getPassword() {
		return password;
	}
	

	/**
	 * @param password The password to set.
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	

	/**
	 * 
	 */
	public User() {
	}
	
}