SWS group task 2008-2009s1
Group task (Task B)
Your task (as a group) is to extend the functionality of the web application you developed in Task A as follows:
- The application must allow persistent storage of valid airline bookings in a database.
- A booking identifies a flight and a passenger.
- For the purposes of this exercise:
- two flights are identical if they have the same flight number and date
- two passengers are identical if they have the same lastname, forename and postcode
- Each flight has a maximum number of passengers (which must be stored in the flight details). Once that number has been reached, further bookings for the same flight should be rejected.
- The user must be able to request a report showing the details of all flights, passengers and bookings held by the system.
Advice
- Think carefully about the design of objects to represent the flight, passenger and booking entities. What properties should they have and what type should the properties be? What other operations (methods) should be applicable to each object?
- The Model-View-Controller (MVC) pattern is a good way of structuring a web application. Think carefully about how you can structure your code to achieve this separation.
Constraints
The same constraints on your solution apply as for Task A.
Database access
Use the built-in Java database to store your data.