Book a Demo

Author Topic: Containers for 1..n relationships  (Read 3502 times)

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Containers for 1..n relationships
« on: October 26, 2002, 02:08:58 pm »
Hi all,

Under the "Java" code generation options, there is a field for specifying the container class for 1..n associations.  I set this to "Vector," even imported the Vector class, but it seems to have no effect on the generated code.  Any tips?

Thanks,
Fred Woolsey
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: Containers for 1..n relationships
« Reply #1 on: October 31, 2002, 02:33:32 pm »
Just refreshing the post so it doesn't get lost...

FCW
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


Sandro Gava

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Containers for 1..n relationships
« Reply #2 on: November 11, 2002, 09:40:55 am »
Hello,
I usually generate java code from diagrams and it seems to work properly.
You can specify a global setting in "View > Options > Java specification" or for a single Class (the class that has multiplicity 1 in the 1-to-many relationship) and it will work.
Hope this helps.

Sandro