2023-01-27 15:14:36 +01:00
|
|
|
package com.bib.essensbestellungsverwaltung;
|
2023-01-30 04:26:30 +01:00
|
|
|
/*
|
|
|
|
@author Malte Schulze Hobeling
|
|
|
|
*/
|
2023-01-27 15:14:36 +01:00
|
|
|
|
|
|
|
public class User {
|
|
|
|
private long id;
|
|
|
|
private String name;
|
|
|
|
private String firstname;
|
|
|
|
private String password;
|
|
|
|
private String email;
|
|
|
|
private Address address;
|
|
|
|
|
2023-01-30 04:26:30 +01:00
|
|
|
public User(long id, String name, String firstname, String password, String email, Address address) {
|
2023-01-27 15:14:36 +01:00
|
|
|
this.id = id;
|
|
|
|
this.name = name;
|
|
|
|
this.firstname = firstname;
|
|
|
|
this.password = password;
|
|
|
|
this.email = email;
|
|
|
|
this.address = address;
|
2023-01-30 04:26:30 +01:00
|
|
|
}
|
|
|
|
public User(String name, String firstname, String password, String email, Address address) {
|
|
|
|
this.id = -1;
|
|
|
|
this.name = name;
|
|
|
|
this.firstname = firstname;
|
|
|
|
this.password = password;
|
|
|
|
this.email = email;
|
|
|
|
this.address = address;
|
2023-01-27 15:14:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public long getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getFirstname() {
|
|
|
|
return firstname;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getPassword() {
|
|
|
|
return password;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getEmail() {
|
|
|
|
return email;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Address getAddress() {
|
|
|
|
return address;
|
|
|
|
}
|
|
|
|
}
|