[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.emf] Re: Map datatype in XML Schema
|
Jacky,
Yes, if you want EMap support, you'll have to use Java annotations or a modeling
tool.
Jacky wrote:
> Hi Ed Merks,
>
> Thanks for your timely response~
> So for this moment, I should resort to use annotated java to generate EMF?
>
> Best Regards,
> Jacky
>
> Ed Merks wrote:
>
> > Jacky,
>
> > I suppose that you would want to use key/keyref to do that, but the XML
> Schema
> > to Ecore conversion ignores key/keyref declarations, so there's no way to
> > start with an XML Schema and end up with a EMap in EMF (if that's your goal).
> > We're considering such support in 2.0, but we have a mountain of work...
>
> > Jacky wrote:
>
> > > Hi all,
> > >
> > > I am writing an XML schema to specify a map relationship in EMF model.
> > > For example, class A contains a map of class B, so that I retrieve class B
> > > using a key.
> > > Would anyone give me an example on how define such relationship using XML
> > > schema?
> > >
> > > thanks in advance.
> > >
> > > Best Regards,
> > > Jacky