50 lines
1.2 KiB
Java
Raw Normal View History

2023-01-27 15:14:36 +01:00
package com.bib.essensbestellungsverwaltung;
2023-02-01 22:52:04 +01:00
/**
* 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
*/
2023-01-27 15:14:36 +01:00
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;
}
2023-01-30 04:26:30 +01:00
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;
}
2023-01-27 15:14:36 +01:00
}