View Javadoc
1   /*
2    *    Copyright 2009-2022 the original author or authors.
3    *
4    *    Licensed under the Apache License, Version 2.0 (the "License");
5    *    you may not use this file except in compliance with the License.
6    *    You may obtain a copy of the License at
7    *
8    *       https://www.apache.org/licenses/LICENSE-2.0
9    *
10   *    Unless required by applicable law or agreed to in writing, software
11   *    distributed under the License is distributed on an "AS IS" BASIS,
12   *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *    See the License for the specific language governing permissions and
14   *    limitations under the License.
15   */
16  package org.apache.ibatis.submitted.complex_property;
17  
18  public class User {
19    private Long id;
20  
21    /*
22     * user specified user ID
23     */
24    private String username;
25  
26    /*
27     * encrypted password
28     */
29    private EncryptedString password;
30  
31    boolean administrator;
32  
33    public User() {
34      setUsername(new String());
35      setPassword(new EncryptedString());
36      setAdministrator(false);
37    }
38  
39    public String getUsername() {
40      return username;
41    }
42  
43    public void setUsername(String arg) {
44      this.username = arg;
45    }
46  
47    public EncryptedString getPassword() {
48      return password;
49    }
50  
51    public void setPassword(EncryptedString arg) {
52      this.password = arg;
53    }
54  
55    public Long getId() {
56      return id;
57    }
58  
59    public void setId(Long oid) {
60      this.id = oid;
61    }
62  
63    public boolean isAdministrator() {
64      return administrator;
65    }
66  
67    public void setAdministrator(boolean arg) {
68      this.administrator = arg;
69    }
70  }