commit | author | age
|
c65695
|
1 |
/* |
U |
2 |
* Nutzerverwaltung - User and role management in your browser |
|
3 |
* Copyright (C) 2011, 2012 Ulrich Hilger, http://uhilger.de |
|
4 |
* |
|
5 |
* This program is free software: you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation, either version 3 of the License, or |
|
8 |
* (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program. If not, see http://www.gnu.org/licenses/ |
|
17 |
*/ |
|
18 |
|
|
19 |
package de.uhilger.um.daten; |
|
20 |
|
|
21 |
import java.io.Serializable; |
|
22 |
|
|
23 |
import de.uhilger.baselink.DBColumn; |
|
24 |
import de.uhilger.baselink.DBPrimaryKey; |
|
25 |
import de.uhilger.baselink.DBTable; |
|
26 |
|
|
27 |
|
|
28 |
@DBTable(name="app.user_roles") |
|
29 |
@DBPrimaryKey({"user_name","role_name"}) |
|
30 |
public class UserRole implements Serializable { |
|
31 |
|
|
32 |
private static final long serialVersionUID = -1921027895813634215L; |
|
33 |
private String userId; |
|
34 |
private String role; |
|
35 |
|
|
36 |
public UserRole() { |
|
37 |
super(); |
|
38 |
} |
|
39 |
|
|
40 |
@DBColumn(name = "user_name") |
|
41 |
public String getUser() { |
|
42 |
return userId; |
|
43 |
} |
|
44 |
public void setUser(String userId) { |
|
45 |
this.userId = userId; |
|
46 |
} |
|
47 |
|
|
48 |
@DBColumn(name = "role_name") |
|
49 |
public String getRole() { |
|
50 |
return role; |
|
51 |
} |
|
52 |
public void setRole(String role) { |
|
53 |
this.role = role; |
|
54 |
} |
|
55 |
|
|
56 |
|
|
57 |
} |