Class diagram of a bank confusion











up vote
1
down vote

favorite












I found the following class diagram through google(from researchgate) and I am confused with the relationship between the Account class and the Client class. AFAIK, this way the diagram shows that multiple clients can be related to one account. But shouldn't it be the other way around? I can create multiple accounts in a bank and be their owner. According to me the cardinality should be 0..n on the Account class and 1 on the Client class because one owner can have multiple accounts. Am I missing something?



UML Class diagram for a banking system










share|improve this question






















  • I think it should be 1..n in the Client side. An account has to have at least one owner. The rest means that in this particular Bank each client can only have an account, not multiple accounts. Or it is wrong as you said.
    – progmatico
    Nov 20 at 15:31












  • I think it makes a less sense for an account to have multiple owners(and at least one) than an user to have multiple accounts. Here AFAIK, is said that an account can have 0 or more owners which makes a little sense to me.
    – LearningMath
    Nov 20 at 15:44






  • 2




    This is more a banking question than a uml question. An account can have multiple clients (e.g. a couple husband/wife) and a client can have multipe accounts. So I'd assume you'd have an n:m relation. Since your model looks like a design model you might want to model Account 1:n Bank details and Bank details n:1 Client.
    – Wolfgang Fahl
    Nov 20 at 17:30












  • I agree with @WolfgangFahl. To me it's strange that they have multiple account lists which can have zero(???) to many accounts inside. No idea what the reason for that could be.
    – Thomas Kilian
    Nov 20 at 18:39












  • It depends on the type of account, but in general banking it’s many-to-many with the join being a form of delegation. An account can have multiple owners and those owners can delegate rights to access an account to others usually. In the reverse a single client can ‘own’ multiple accounts and may be delegated rights to access other accounts too. E.g. a business ‘owns’ an account but has directors that have authority to sign and delegate actions to administrators. That would be for domestic currency, foreign currency accounts can be different.
    – muszeo
    Nov 21 at 8:15















up vote
1
down vote

favorite












I found the following class diagram through google(from researchgate) and I am confused with the relationship between the Account class and the Client class. AFAIK, this way the diagram shows that multiple clients can be related to one account. But shouldn't it be the other way around? I can create multiple accounts in a bank and be their owner. According to me the cardinality should be 0..n on the Account class and 1 on the Client class because one owner can have multiple accounts. Am I missing something?



UML Class diagram for a banking system










share|improve this question






















  • I think it should be 1..n in the Client side. An account has to have at least one owner. The rest means that in this particular Bank each client can only have an account, not multiple accounts. Or it is wrong as you said.
    – progmatico
    Nov 20 at 15:31












  • I think it makes a less sense for an account to have multiple owners(and at least one) than an user to have multiple accounts. Here AFAIK, is said that an account can have 0 or more owners which makes a little sense to me.
    – LearningMath
    Nov 20 at 15:44






  • 2




    This is more a banking question than a uml question. An account can have multiple clients (e.g. a couple husband/wife) and a client can have multipe accounts. So I'd assume you'd have an n:m relation. Since your model looks like a design model you might want to model Account 1:n Bank details and Bank details n:1 Client.
    – Wolfgang Fahl
    Nov 20 at 17:30












  • I agree with @WolfgangFahl. To me it's strange that they have multiple account lists which can have zero(???) to many accounts inside. No idea what the reason for that could be.
    – Thomas Kilian
    Nov 20 at 18:39












  • It depends on the type of account, but in general banking it’s many-to-many with the join being a form of delegation. An account can have multiple owners and those owners can delegate rights to access an account to others usually. In the reverse a single client can ‘own’ multiple accounts and may be delegated rights to access other accounts too. E.g. a business ‘owns’ an account but has directors that have authority to sign and delegate actions to administrators. That would be for domestic currency, foreign currency accounts can be different.
    – muszeo
    Nov 21 at 8:15













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I found the following class diagram through google(from researchgate) and I am confused with the relationship between the Account class and the Client class. AFAIK, this way the diagram shows that multiple clients can be related to one account. But shouldn't it be the other way around? I can create multiple accounts in a bank and be their owner. According to me the cardinality should be 0..n on the Account class and 1 on the Client class because one owner can have multiple accounts. Am I missing something?



UML Class diagram for a banking system










share|improve this question













I found the following class diagram through google(from researchgate) and I am confused with the relationship between the Account class and the Client class. AFAIK, this way the diagram shows that multiple clients can be related to one account. But shouldn't it be the other way around? I can create multiple accounts in a bank and be their owner. According to me the cardinality should be 0..n on the Account class and 1 on the Client class because one owner can have multiple accounts. Am I missing something?



UML Class diagram for a banking system







oop uml class-diagram






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 20 at 14:30









LearningMath

356219




356219












  • I think it should be 1..n in the Client side. An account has to have at least one owner. The rest means that in this particular Bank each client can only have an account, not multiple accounts. Or it is wrong as you said.
    – progmatico
    Nov 20 at 15:31












  • I think it makes a less sense for an account to have multiple owners(and at least one) than an user to have multiple accounts. Here AFAIK, is said that an account can have 0 or more owners which makes a little sense to me.
    – LearningMath
    Nov 20 at 15:44






  • 2




    This is more a banking question than a uml question. An account can have multiple clients (e.g. a couple husband/wife) and a client can have multipe accounts. So I'd assume you'd have an n:m relation. Since your model looks like a design model you might want to model Account 1:n Bank details and Bank details n:1 Client.
    – Wolfgang Fahl
    Nov 20 at 17:30












  • I agree with @WolfgangFahl. To me it's strange that they have multiple account lists which can have zero(???) to many accounts inside. No idea what the reason for that could be.
    – Thomas Kilian
    Nov 20 at 18:39












  • It depends on the type of account, but in general banking it’s many-to-many with the join being a form of delegation. An account can have multiple owners and those owners can delegate rights to access an account to others usually. In the reverse a single client can ‘own’ multiple accounts and may be delegated rights to access other accounts too. E.g. a business ‘owns’ an account but has directors that have authority to sign and delegate actions to administrators. That would be for domestic currency, foreign currency accounts can be different.
    – muszeo
    Nov 21 at 8:15


















  • I think it should be 1..n in the Client side. An account has to have at least one owner. The rest means that in this particular Bank each client can only have an account, not multiple accounts. Or it is wrong as you said.
    – progmatico
    Nov 20 at 15:31












  • I think it makes a less sense for an account to have multiple owners(and at least one) than an user to have multiple accounts. Here AFAIK, is said that an account can have 0 or more owners which makes a little sense to me.
    – LearningMath
    Nov 20 at 15:44






  • 2




    This is more a banking question than a uml question. An account can have multiple clients (e.g. a couple husband/wife) and a client can have multipe accounts. So I'd assume you'd have an n:m relation. Since your model looks like a design model you might want to model Account 1:n Bank details and Bank details n:1 Client.
    – Wolfgang Fahl
    Nov 20 at 17:30












  • I agree with @WolfgangFahl. To me it's strange that they have multiple account lists which can have zero(???) to many accounts inside. No idea what the reason for that could be.
    – Thomas Kilian
    Nov 20 at 18:39












  • It depends on the type of account, but in general banking it’s many-to-many with the join being a form of delegation. An account can have multiple owners and those owners can delegate rights to access an account to others usually. In the reverse a single client can ‘own’ multiple accounts and may be delegated rights to access other accounts too. E.g. a business ‘owns’ an account but has directors that have authority to sign and delegate actions to administrators. That would be for domestic currency, foreign currency accounts can be different.
    – muszeo
    Nov 21 at 8:15
















I think it should be 1..n in the Client side. An account has to have at least one owner. The rest means that in this particular Bank each client can only have an account, not multiple accounts. Or it is wrong as you said.
– progmatico
Nov 20 at 15:31






I think it should be 1..n in the Client side. An account has to have at least one owner. The rest means that in this particular Bank each client can only have an account, not multiple accounts. Or it is wrong as you said.
– progmatico
Nov 20 at 15:31














I think it makes a less sense for an account to have multiple owners(and at least one) than an user to have multiple accounts. Here AFAIK, is said that an account can have 0 or more owners which makes a little sense to me.
– LearningMath
Nov 20 at 15:44




I think it makes a less sense for an account to have multiple owners(and at least one) than an user to have multiple accounts. Here AFAIK, is said that an account can have 0 or more owners which makes a little sense to me.
– LearningMath
Nov 20 at 15:44




2




2




This is more a banking question than a uml question. An account can have multiple clients (e.g. a couple husband/wife) and a client can have multipe accounts. So I'd assume you'd have an n:m relation. Since your model looks like a design model you might want to model Account 1:n Bank details and Bank details n:1 Client.
– Wolfgang Fahl
Nov 20 at 17:30






This is more a banking question than a uml question. An account can have multiple clients (e.g. a couple husband/wife) and a client can have multipe accounts. So I'd assume you'd have an n:m relation. Since your model looks like a design model you might want to model Account 1:n Bank details and Bank details n:1 Client.
– Wolfgang Fahl
Nov 20 at 17:30














I agree with @WolfgangFahl. To me it's strange that they have multiple account lists which can have zero(???) to many accounts inside. No idea what the reason for that could be.
– Thomas Kilian
Nov 20 at 18:39






I agree with @WolfgangFahl. To me it's strange that they have multiple account lists which can have zero(???) to many accounts inside. No idea what the reason for that could be.
– Thomas Kilian
Nov 20 at 18:39














It depends on the type of account, but in general banking it’s many-to-many with the join being a form of delegation. An account can have multiple owners and those owners can delegate rights to access an account to others usually. In the reverse a single client can ‘own’ multiple accounts and may be delegated rights to access other accounts too. E.g. a business ‘owns’ an account but has directors that have authority to sign and delegate actions to administrators. That would be for domestic currency, foreign currency accounts can be different.
– muszeo
Nov 21 at 8:15




It depends on the type of account, but in general banking it’s many-to-many with the join being a form of delegation. An account can have multiple owners and those owners can delegate rights to access an account to others usually. In the reverse a single client can ‘own’ multiple accounts and may be delegated rights to access other accounts too. E.g. a business ‘owns’ an account but has directors that have authority to sign and delegate actions to administrators. That would be for domestic currency, foreign currency accounts can be different.
– muszeo
Nov 21 at 8:15

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53395244%2fclass-diagram-of-a-bank-confusion%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53395244%2fclass-diagram-of-a-bank-confusion%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Feedback on college project

Futebolista

Albești (Vaslui)