most Objects done

This commit is contained in:
2023-01-30 04:26:30 +01:00
parent a0eed3ce51
commit 81bcb44d74
15 changed files with 396 additions and 121 deletions

View File

@@ -1,4 +1,7 @@
package com.bib.essensbestellungsverwaltung;
/*
@author Malte Schulze Hobeling
*/
public class User {
private long id;
@@ -7,18 +10,22 @@ public class User {
private String password;
private String email;
private Address address;
private boolean isWorker;
private boolean isParent;
public User(long id, String name, String firstname, String password, String email, Address address, boolean isWorker, boolean isParent) {
public User(long id, String name, String firstname, String password, String email, Address address) {
this.id = id;
this.name = name;
this.firstname = firstname;
this.password = password;
this.email = email;
this.address = address;
this.isWorker = isWorker;
this.isParent = isParent;
}
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;
}
public long getId() {
@@ -44,12 +51,4 @@ public class User {
public Address getAddress() {
return address;
}
public boolean isWorker() {
return isWorker;
}
public boolean isParent() {
return isParent;
}
}