Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Łukasz Dudek

Pages: [1]
1
Great. This works. Thanks a lot.

2
Hi all.
Is there any way to generate association between classes as ref and not as definition of an element with associated class as its type?

I define association like this:


EA generates it as:

<xs:complexType name="PartyContact">
  <xs:sequence>
    <xs:element name="Contact" type="con:Contact" />
  </xs:sequence>
  <xs:attribute name="partyContactType" use="optional" type="con:ContactType">
</xs:complexType>

But I would like to have it generated like this:

<xs:complexType name="PartyContact">
  <xs:sequence>
    <xs:element ref="con:Contact" />
  </xs:sequence>
  <xs:attribute name="partyContactType" use="optional" type="con:ContactType">
  </xs:attribute>
</xs:complexType>

I'm aware, that I can define new field in class PartyContact and mark it as reference, and then EA generates XSD as I want, but I would also like to keep associations in the class diagram.

Namespace con is used in different package.
I would appreciate any help.

Pages: [1]