[EMF] Lower bound 0 vs lower bound 1 of Reference [message #1745050] |
Tue, 04 October 2016 13:42 |
Marco Sgura Messages: 5 Registered: September 2016 |
Junior Member |
|
|
Hi,
I started recently with EMF and i have a doubt:
If i have class diagram like this:
A -----> B
In the generated code of A i see:
with lower bound = 0 or with lower bound = 1. So in the new Eclipse instance started to populate the model, initial value of property B in an instance of A is not set, then i can set it with a reference to B or return it to initial value. So are there any differences between lower bound = 0 and lower bound = 1 of reference? In the case of lower bound = 1 i was expecting to be able to create an instance of A only then an instance of B to have a value consistent with lower bound constraint.
Thank you all.
Marco
[Updated on: Tue, 04 October 2016 13:47] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02566 seconds