Skip to content

Consolidate Petclinic controllers to take full advantage of @MVC style [SPR-5488] #10160

@spring-projects-issues

Description

@spring-projects-issues

Chris Beams opened SPR-5488 and commented

Petclinic currently has the following controllers:

AddOwnerForm
AddPetForm
AddVisitForm

ClinicController

EditOwnerForm
EditPetForm
FindOwnersForm

Even though these controllers have long since been migrated to @MVC annotations and away from SimpleFormController / MultiActionController extension, their granularity reflects their inheritance-based origins.

A much better layout can be acheived now, where most or all entity-related functions are consolidated in a dedicated Controller. Simply:

OwnerController
PetController
VisitController
VetController
etc..


This issue is a sub-task of #10156

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently applytype: taskA general task

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions