|
Re: Creating compartment wiithin a compartment using GMF [message #522916 is a reply to message #522319] |
Wed, 24 March 2010 14:08 |
Eclipse User |
|
|
|
Originally posted by: mail.hamburg.googlemail.com
> Hi,
>
> Is there a way we could create a compartment withing another compartment
> using GMF?
>
> eg.
>
> I have a structure like this Organization , Manager and Employees. My
> requirement is to create a node mapping for Organization ,within
> organization i want to create a compartment to iclude the Manager and
> within Manager i want to create another compartment to hold the employees.
>
> Please help!
>
> Thanks!
>
Hello, yes, it is possible. For example:
Top Node Reference Organisation
--Node Mapping Organisation
--ChildReference <containsManagers:Manager/Manager_Node>
--NodeMapping Manager
--Child Reference<containsEmployees:Employee/Employee_Node>
--Node Mapping <Employee/Employee_Node>
--Compartment Mapping <CompartmentForEmployees>
--Compartment Mapping <CompartmentForManagers>
I hope it is clear and i didn't make any mistake.
Just set the children-attribute of a compartment to elements which
should be added to your compartment in the editor.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03656 seconds