# Conflicts: # src/main/java/com/bib/essensbestellungsverwaltung/MenueController.java # src/main/java/com/bib/essensbestellungsverwaltung/SettingsController.java # src/main/java/com/bib/essensbestellungsverwaltung/SingUpController.java # src/main/java/com/bib/essensbestellungsverwaltung/StartViewApplication.java # src/main/resources/com/bib/essensbestellungsverwaltung/menue-view.fxml # src/main/resources/com/bib/essensbestellungsverwaltung/signUp-view.fxml
51 lines
1.2 KiB
Java
51 lines
1.2 KiB
Java
package com.bib.essensbestellungsverwaltung;
|
|
|
|
/**
|
|
* An Address, used by User and Child and intended as a way to identify a child if you want to match it to another parent
|
|
* one constructor is used for creating new addresses the other is used to create existing addresses from database
|
|
* @author Malte Schulze Hobeling
|
|
*/
|
|
public class Address {
|
|
private long id;
|
|
private String street;
|
|
private String number;
|
|
private String plz;
|
|
private String city;
|
|
|
|
public long getId() {
|
|
return id;
|
|
}
|
|
|
|
public String getStreet() {
|
|
return street;
|
|
}
|
|
|
|
public String getNumber() {
|
|
return number;
|
|
}
|
|
|
|
public String getPlz() {
|
|
return plz;
|
|
}
|
|
|
|
public String getCity() {
|
|
return city;
|
|
}
|
|
|
|
public Address(long id, String street, String number, String plz, String city) {
|
|
this.id = id;
|
|
this.street = street;
|
|
this.number = number;
|
|
this.plz = plz;
|
|
this.city = city;
|
|
}
|
|
public Address(String street, String number, String plz, String city) {
|
|
this.id = -1;
|
|
this.street = street;
|
|
this.number = number;
|
|
this.plz = plz;
|
|
this.city = city;
|
|
}
|
|
|
|
}
|