app/repository/UndoStackRepository.java
private void processStackItem(UndoStack command) {
        switch (command.getItem_type()) {
            case "profile":
                profileRepository.delete(command.getObjectId());
                break;
            case "trip":
                tripRepository.delete(command.getObjectId());
                break;
            case "destination":
                destinationRepository.delete(command.getObjectId());
                break;
            case "treasure_hunt":
                treasureHuntRepository.deleteTreasureHunt(command.getObjectId());
                break;
            case "artist":
                artistRepository.deleteArtist(command.getObjectId());
                break;
            default:
                break;
        }
    }
/**
     * Helper function to process and item off the undo stack
     *
     * @param command the command to be processed
     */
Helper function to process and item off the undo stack
@param command the command to be processed
Helper function to process and item off the undo stack @param command the command to be processed
private void processStackItem(UndoStack command) {
        switch (command.getItem_type()) {
            case "profile":
                profileRepository.delete(command.getObjectId());
                break;
            case "trip":
                tripRepository.delete(command.getObjectId());
                break;
            case "destination":
                destinationRepository.delete(command.getObjectId());
                break;
            case "treasure_hunt":
                treasureHuntRepository.deleteTreasureHunt(command.getObjectId());
                break;
            case "artist":
                artistRepository.deleteArtist(command.getObjectId());
                break;
            default:
                break;
        }
    }
private void processStackItem ( UndoStack command ) { switch ( command . getItem_type ( ) ) { case "profile" : profileRepository . delete ( command . getObjectId ( ) ) ; break ; case "trip" : tripRepository . delete ( command . getObjectId ( ) ) ; break ; case "destination" : destinationRepository . delete ( command . getObjectId ( ) ) ; break ; case "treasure_hunt" : treasureHuntRepository . deleteTreasureHunt ( command . getObjectId ( ) ) ; break ; case "artist" : artistRepository . deleteArtist ( command . getObjectId ( ) ) ; break ; default : break ; } }
Helper function to process and item off the undo stack
 @param command the command to be processed
Helper function to process and item off the undo stack @param command the command to be processed