How do I create a sub class (flatt mapping) within the DSL designer?
I have got the following table:
[PISA_Id] [int] IDENTITY(1,1) NOT NULL,
[voa_class] [int] NOT NULL,
[PISA_Name] [nvarchar](50) NOT NULL,
[PISA_Value] [nvarchar](50) NOT NULL
The field "voa_class" is the discriminator field. Is the field name "voa_class" fix or can I rename it to something else?
I now want to have different sub classes. For example a ProjectPriority class. That class have no additional fields.
I guessed that I need to:
- set the generated class "ProjectItemStatusAttribut" to "abstract" at the property window
- delete (unmapp) the field "vao_class" from the DSL designer
- set the "Discriminator column" to "voa_class" and check the option "Class ID" at the "Discriminator value" group within the "Mapping Details Editor"
But now, how to add a sub class? If I drag&drop a MetaClass "Icon" from the Toolbox to the DSL designer I get the message "All available tables in the relational model are alreday mapped".
What do I need to do?