• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java and UML  RSS feed

 
Fernando Piovani
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I know little about UML diagrams, and i hope you guys can help me out. I've created an example to ilustrate my currently doubts:

http://img199.imageshack.us/img199/8751/licao.jpg

Can someone translate it to Java?

Thankz, best regards.

ps: Btw, the relationship between Client and Agency are *.. 1, not 1 .. 1.

 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, and welcome!!! We don't really just hand out code. If you show us what you've tried, we'll be happy to help guide you towards getting it correct. So, post what you've got so far.

Note: Please, when posting java source code, surround it with 'code' tags to make it easier to read. You can click the little button above where you enter your post and they'll pop in, then paste your stuff between the ']' and the '['.

thanks!!!
 
Fernando Piovani
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred rosenberger wrote:Hi, and welcome!!! We don't really just hand out code. If you show us what you've tried, we'll be happy to help guide you towards getting it correct. So, post what you've got so far.

Note: Please, when posting java source code, surround it with 'code' tags to make it easier to read. You can click the little button above where you enter your post and they'll pop in, then paste your stuff between the ']' and the '['.

thanks!!!


Well, i've just asked for an example so i can understand it how do relationships between classes like in the example (one to many, many to one) works on java. This concept arent clear in my head, and i dont have an idea how to begin with.

 
Gabrielle Littler
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fernando,

Do you know how to create classes in java? If so, a good place to start would be creating a java class for each of the objects in your model.

If not, let us know, I'm sure one of the nice people here could direct you towards a good 'getting started' tutorial.
 
Fernando Piovani
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gabrielle Littler wrote:Hi Fernando,

Do you know how to create classes in java? If so, a good place to start would be creating a java class for each of the objects in your model.

If not, let us know, I'm sure one of the nice people here could direct you towards a good 'getting started' tutorial.


Yes, i know... In fact i've already figure it out how to do the problem of relationship with one-to-many:



Now i am trying to understand how did a class can compose another without belonging to it. Like it was said here:
In matter of fact most of these associations are unknown to me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!