Book a Demo

Author Topic: DDL Transformation: Collections  (Read 2583 times)

Sepp

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
DDL Transformation: Collections
« on: August 15, 2009, 07:52:22 am »
Again on the transformations thing, a general question this time:

Collections of Objects are modelled by associations, which works perfectly fine when transforming to DDL.

But what about collections of primitive types, say a vector<int> in C++ or an ArrayList<String> in Java? By default, EA did not map them at all, but instead created columns of type vector<int>, which of course is not what I desired.

How can I make EA map these collections to a seperate table, e.g. a "vector<int> members" to a table called "members", with the id of the containing object as FK and one INTEGER column?

Thank you in advance for any help on this one and greets
Sepp