|
Description:
|
The following error message is reported when attempting to save a new Booking in the generated TicketMonster scaffold:
Although the tickets field is visible, one cannot choose existing Tickets nor create new ones in the Create Booking screen. This is because the generated Forge scaffold does not contain the correct code for immutable entities like Ticket. Forge scaffolding assumes that related collections in a scaffolded entity are not immutable.
Additionally, since the tickets collection cannot be null, a booking cannot be saved without a ticket, and hence this cannot be worked around without modifying the Forge scaffolding correctly.
|