[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: EReference on a default ID

Guillaume,

The ID must be set to used. Are you suggesting you made "default" the default value for the id attribute? That's not a good idea, because if there is more than one 'A' they will have the same ID value, which is invalid, and so you'll still have to set it.


Guillaume Surrel wrote:
Hi all,

I'm new to emf and I'm currently stuck on something.
Here is my problem :
I've made an EClass 'B' which has an EReference 'link' on an EClass 'A'.
'A' has an EAttribute 'id' with the ID attribute set to true.

The problem is that I have something like this in the resulting XML :
<A id="default">
<B link="//@A.0">
instead of
<A id="default">
<B link="default">
when the id on A is not set and has the default value. Everything is as expected when I explicitly set the id value of class A using the properties view.



Thank you.