Dear Experts,
Could you please provide you comment to me? Thanks
An Exhibition has many Halls, and different Booth Types
If exhibition is not exist, hall and booth type will not exist too.
In the object level, my design like follow, is this design elegance?
Class Exhibition
//Assume setter/Getter method of halls is available
//Assume setter/Getter method of booth types is available
private ArrayList halls;
private ArrayList boothTypes;
Class ExhibitionController
public void addExhibition(Exhibition) {
//implement
}
public void addHall(Hall) {
//implement
}
public void addBoothType(Boothtype) {
//implement
}
public Exhibition getExhibition(exhibition id) {
// get exhibition from database
// get hall from database
// get booth type from database
// return exhibition
}
}