most Objects done
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user