Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MVC and UML : Architecture and Modeling

 
Ben Hayce
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

Suppose I'm making a class diagram for my application...

Does it differ weteher I'm using MVC architecture or not?

Thank you!
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A class diagram is a class diagram--it diagrams classes.
 
Ben Hayce
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you David,

I have an other question still about class diagrams:

Suppose I have categories of profiles: admins, users, and visitors.

Can I use inheritance although later in the database I'll just keep a field called 'role'?

Thank you.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No way to answer that question out of context.
 
Ben Hayce
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a website, visitors register then login, admins are users but with extra capabilities.

I know that this doesn't bring anything new, but this is my context, I got confused since in the database admins and registered users differ only by with 'role' property.
Visitors don't have any entry in the database.

Ask me if the context isn't clear yet.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand what you're trying to do, I just don't understand the question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic