commit | author | age
|
c65695
|
1 |
/* |
U |
2 |
* Nutzerverwaltung - User and role management in your browser |
51c9e3
|
3 |
* Copyright (C) 2011-2016 Ulrich Hilger, http://uhilger.de |
c65695
|
4 |
* |
U |
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.methoden") |
|
29 |
@DBPrimaryKey({"mt_id"}) |
|
30 |
public class Methode implements Serializable { |
|
31 |
|
|
32 |
private static final long serialVersionUID = 8274601049628620767L; |
|
33 |
|
|
34 |
private int id; |
|
35 |
private String mtKlasse; |
|
36 |
private String mtName; |
|
37 |
|
|
38 |
public Methode() { |
|
39 |
super(); |
|
40 |
} |
|
41 |
|
|
42 |
@DBColumn(name = "mt_id") |
|
43 |
public int getId() { |
|
44 |
return id; |
|
45 |
} |
|
46 |
|
|
47 |
public void setId(int id) { |
|
48 |
this.id = id; |
|
49 |
} |
|
50 |
|
|
51 |
@DBColumn(name = "mt_name") |
|
52 |
public String getName() { |
|
53 |
return mtName; |
|
54 |
} |
|
55 |
|
|
56 |
public void setName(String name) { |
|
57 |
this.mtName = name; |
|
58 |
} |
|
59 |
|
|
60 |
@DBColumn(name = "mt_klasse") |
|
61 |
public String getKlasse() { |
|
62 |
return mtKlasse; |
|
63 |
} |
|
64 |
|
|
65 |
public void setKlasse(String klasse) { |
|
66 |
this.mtKlasse = klasse; |
|
67 |
} |
|
68 |
|
|
69 |
@Override |
|
70 |
public boolean equals(Object obj) { |
|
71 |
boolean isEqual = false; |
|
72 |
if(obj != null && obj instanceof Methode) { |
|
73 |
Methode other = (Methode) obj; |
|
74 |
isEqual = other.getId() == this.getId(); |
|
75 |
} |
|
76 |
return isEqual; |
|
77 |
} |
|
78 |
} |