The mongoDB database is used in assignment 3. This database autogenerates a primary key id of type String. To date, using JPA, we have generated the id client-side. Here we discuss refactoring to adapt our app to a database where the id is autogenerated server-side.
A class may not implement more than one Callback. Yet in some compilation units the requirement is to use Callbacks where two or perhaps more response body types are used. An example would be the need to retrieve a list of residences and to delete a particular residence. Here we examine two patterns to deal with this situation: in one we use inner classes, in the other anonymous classes.