|
Re: [EMF] Lower bound 0 vs lower bound 1 of Reference [message #1745052 is a reply to message #1745049] |
Tue, 04 October 2016 14:04 |
Aurélien Mora Messages: 38 Registered: July 2014 |
Member |
|
|
Hello,
By default, no instance is automatically created for a reference, whether the lower bound is 0 or 1.
The main difference when you change the lower bound, I think, is during the validation of your model : if a lower bound 1 reference is null, you'll have an error.
Now, I suppose your need is to automatically create an instance of B when you create A, isn't it ?
I'm not sure what is the best approach, but you can :
- edit your ModelFactory.createA() (in the model generated code) (no, never do that)
- edit the create command in the edit model (in the edit generated code).
Aurélien.
[Updated on: Tue, 04 October 2016 20:09] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03729 seconds