Skip to content

Method: getName()

1: package de.fhdw.wtf.persistence.meta;
2:
3: public class User {
4:         
5:         private final long id;
6:         private final String name;
7:         private final String mandantId;
8:         
9:         public User(final long id, final String name, final String mandantId) {
10:                 super();
11:                 this.id = id;
12:                 this.name = name;
13:                 this.mandantId = mandantId;
14:         }
15:         
16:         public long getId() {
17:                 return this.id;
18:         }
19:         
20:         public String getName() {
21:                 return this.name;
22:         }
23:         
24:         public String getMandantId() {
25:                 return this.mandantId;
26:         }
27:         
28:         @Override
29:         public boolean equals(final java.lang.Object obj) {
30:                 if (obj instanceof User) {
31:                         final User other = (User) obj;
32:                         return this.id == other.id;
33:                 }
34:                 return false;
35:         }
36:         
37:         @Override
38:         public int hashCode() {
39:                 return (int) this.id;
40:         }
41:         
42: }