most Objects done
This commit is contained in:
49
src/main/java/com/bib/essensbestellungsverwaltung/Child.java
Normal file
49
src/main/java/com/bib/essensbestellungsverwaltung/Child.java
Normal file
@@ -0,0 +1,49 @@
|
||||
package com.bib.essensbestellungsverwaltung;
|
||||
/*
|
||||
@author Malte Schulze Hobeling
|
||||
*/
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Child {
|
||||
private long id;
|
||||
private String name;
|
||||
private String firstname;
|
||||
private Address address;
|
||||
private List<AllergySeverity> allergies;
|
||||
|
||||
public Child(long id, String name, String firstname, Address address, List<AllergySeverity> allergies) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.firstname = firstname;
|
||||
this.address = address;
|
||||
this.allergies = allergies;
|
||||
}
|
||||
public Child(String name, String firstname, Address address, List<AllergySeverity> allergies) {
|
||||
this.id = -1;
|
||||
this.name = name;
|
||||
this.firstname = firstname;
|
||||
this.address = address;
|
||||
this.allergies = allergies;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getFirstname() {
|
||||
return firstname;
|
||||
}
|
||||
|
||||
public Address getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public List<AllergySeverity> getAllergies() {
|
||||
return allergies;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user