01: // Copyright 2007 The Apache Software Foundation
02: //
03: // Licensed under the Apache License, Version 2.0 (the "License");
04: // you may not use this file except in compliance with the License.
05: // You may obtain a copy of the License at
06: //
07: // http://www.apache.org/licenses/LICENSE-2.0
08: //
09: // Unless required by applicable law or agreed to in writing, software
10: // distributed under the License is distributed on an "AS IS" BASIS,
11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: // See the License for the specific language governing permissions and
13: // limitations under the License.
14:
15: package org.example.app0.entities;
16:
17: import javax.persistence.Entity;
18: import javax.persistence.Id;
19: import javax.persistence.Version;
20:
21: @Entity
22: public class User {
23: @Id
24: private Long _id;
25:
26: private String _firstName;
27:
28: private String _lastName;
29:
30: private String _email;
31:
32: private String _encodedPassword;
33:
34: @Version
35: private int _version;
36:
37: public String getEmail() {
38: return _email;
39: }
40:
41: public String getEncodedPassword() {
42: return _encodedPassword;
43: }
44:
45: public String getFirstName() {
46: return _firstName;
47: }
48:
49: public Long getId() {
50: return _id;
51: }
52:
53: public String getLastName() {
54: return _lastName;
55: }
56:
57: public int getVersion() {
58: return _version;
59: }
60:
61: public void setEmail(String email) {
62: _email = email;
63: }
64:
65: public void setEncodedPassword(String encodedPassword) {
66: _encodedPassword = encodedPassword;
67: }
68:
69: public void setFirstName(String firstName) {
70: _firstName = firstName;
71: }
72:
73: public void setLastName(String lastName) {
74: _lastName = lastName;
75: }
76: }
|