Author Topic: How to transform typed attributes to (multiple) table columns  (Read 57 times)

brienen

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
When transforming UML classes to tables all class attributes are transformed to single table columns typed as ie varchar, number etc. The table transformation does not work for attribute types other than simple types like: int, string, date, etc...

How can I transform attributes that are typed as a class in my class hierarchy? For instance by inserting all columns from this class into the table I am generating? 

In following example I would like to generate a Table Person with columns: name, first name, street and city.
Example:
Class Person {
attribute name: String
attribute first name: String
attribute address: Address
}
Class Address {
attribute street: String
attribute city: String
}