Book a Demo

Author Topic: Association as attributes  (Read 6282 times)

asbetts

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Association as attributes
« on: September 10, 2006, 09:51:49 pm »
Hi All,
   I'm not sure schemantic implications of this but I've imported XSD with elements as attributes rather than associations to make the diagrams readable. Now on further investigation I realise that attributes have no association with their types (not quite what I expected or hoped for). Also multiplicity doesn't seem to propogate from model to code generation when set on an attribute. Multiplicity does work when an association is created instead however. At this stage I'd be happy to manually fix the relevant elements (attributes) to be associations to keep moving. However on creating the association I cannot get the element it produces in the XSD in the correct position.  This is modeled from an existing well used XSD so I cannot change the order of the declared elements. Is there some way to change the ordering that attributes and association roles are generated into the code?

As side note, is there anyway to display the association roles as attributes if associated class isn't on diagram? Without this there is a lot of information missing about the class.

Version: 6.1
Build: 792

Thanks,

Ashley