Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO][0.8.0] EAnnotation
[CDO][0.8.0] EAnnotation [message #94172] Sat, 25 August 2007 16:47 Go to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
In my model(.ecore), I have information in my annotations that I would like
to send to my Store.

Right now, EPackages, EClass, EStructuralFeature etc.. are converted in
CDOPackage, CDOClass, etc...
Store receive these classes.

Unfortunately CDOPackage and CDOCLass doesn't have that kind of information.

Right now to get around that problem... CDOServer needs to know in advance
which package it will need so it can use EAnnotations.

Do you think it will be good to have such feature ?
Re: [CDO][0.8.0] EAnnotation [message #94193 is a reply to message #94172] Sat, 25 August 2007 18:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Hi Simon,

CDOPackage has a method String getEcore() to receive the serialized
string of the associated model.
You can use this method on client-side and on server-side.
Formerly this method returned null for non-dynamic (generated) models.
But now that you need this information I have changed the code to always
store, transfer and return the model XML string.

If you deploy EMF to your server you should be able to deserialize the
XML model string to an EPackage instance which you can use to query
annotations.
Does that help?

Cheers
/Eike


Simon McDuff schrieb:
> In my model(.ecore), I have information in my annotations that I would like
> to send to my Store.
>
> Right now, EPackages, EClass, EStructuralFeature etc.. are converted in
> CDOPackage, CDOClass, etc...
> Store receive these classes.
>
> Unfortunately CDOPackage and CDOCLass doesn't have that kind of information.
>
> Right now to get around that problem... CDOServer needs to know in advance
> which package it will need so it can use EAnnotations.
>
> Do you think it will be good to have such feature ?
>
>
>
>
Re: [CDO][0.8.0] EAnnotation [message #94202 is a reply to message #94193] Sat, 25 August 2007 18:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Eike Stepper schrieb:
> Hi Simon,
>
> CDOPackage has a method String getEcore() to receive the serialized
> string of the associated model.
> You can use this method on client-side and on server-side.
> Formerly this method returned null for non-dynamic (generated) models.
> But now that you need this information I have changed the code to
> always store, transfer and return the model XML string.
Sorry, this change caused an exception at another location which I have
to track down ;-(
I've reverted the change in the meantime but I'm working on getting it
in again.

Cheers
/Eike


>
> If you deploy EMF to your server you should be able to deserialize the
> XML model string to an EPackage instance which you can use to query
> annotations.
> Does that help?
>
> Cheers
> /Eike
>
>
> Simon McDuff schrieb:
>> In my model(.ecore), I have information in my annotations that I
>> would like to send to my Store.
>>
>> Right now, EPackages, EClass, EStructuralFeature etc.. are converted
>> in CDOPackage, CDOClass, etc...
>> Store receive these classes.
>>
>> Unfortunately CDOPackage and CDOCLass doesn't have that kind of
>> information.
>>
>> Right now to get around that problem... CDOServer needs to know in
>> advance which package it will need so it can use EAnnotations.
>>
>> Do you think it will be good to have such feature ?
>>
>>
>>
>>
Re: [CDO][0.8.0] EAnnotation [message #94211 is a reply to message #94193] Sat, 25 August 2007 18:43 Go to previous messageGo to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
Perfect!

I will try that thank you!


"Eike Stepper" <stepper@sympedia.de> a
Re: [CDO][0.8.0] EAnnotation [message #94236 is a reply to message #94202] Sun, 26 August 2007 07:35 Go to previous message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Hi Simon,

The exception occurred only with EcorePackage.eInstance because EMF does
some setter/getter magic (see EMF newsgroup thread "eGenericSuperTypes").
Currently I have no solution to this problem so I've disabled getEcore()
only for EcorePackage.eInstance. It should work for all other models.

Cheers
/Eike



Eike Stepper schrieb:
> Eike Stepper schrieb:
>> Hi Simon,
>>
>> CDOPackage has a method String getEcore() to receive the serialized
>> string of the associated model.
>> You can use this method on client-side and on server-side.
>> Formerly this method returned null for non-dynamic (generated) models.
>> But now that you need this information I have changed the code to
>> always store, transfer and return the model XML string.
> Sorry, this change caused an exception at another location which I
> have to track down ;-(
> I've reverted the change in the meantime but I'm working on getting it
> in again.
>
> Cheers
> /Eike
>
>
>>
>> If you deploy EMF to your server you should be able to deserialize
>> the XML model string to an EPackage instance which you can use to
>> query annotations.
>> Does that help?
>>
>> Cheers
>> /Eike
>>
>>
>> Simon McDuff schrieb:
>>> In my model(.ecore), I have information in my annotations that I
>>> would like to send to my Store.
>>>
>>> Right now, EPackages, EClass, EStructuralFeature etc.. are
>>> converted in CDOPackage, CDOClass, etc...
>>> Store receive these classes.
>>>
>>> Unfortunately CDOPackage and CDOCLass doesn't have that kind of
>>> information.
>>>
>>> Right now to get around that problem... CDOServer needs to know in
>>> advance which package it will need so it can use EAnnotations.
>>>
>>> Do you think it will be good to have such feature ?
>>>
>>>
>>>
>>>
Re: [CDO][0.8.0] EAnnotation [message #609524 is a reply to message #94172] Sat, 25 August 2007 18:15 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6629
Registered: July 2009
Senior Member
Hi Simon,

CDOPackage has a method String getEcore() to receive the serialized
string of the associated model.
You can use this method on client-side and on server-side.
Formerly this method returned null for non-dynamic (generated) models.
But now that you need this information I have changed the code to always
store, transfer and return the model XML string.

If you deploy EMF to your server you should be able to deserialize the
XML model string to an EPackage instance which you can use to query
annotations.
Does that help?

Cheers
/Eike


Simon McDuff schrieb:
> In my model(.ecore), I have information in my annotations that I would like
> to send to my Store.
>
> Right now, EPackages, EClass, EStructuralFeature etc.. are converted in
> CDOPackage, CDOClass, etc...
> Store receive these classes.
>
> Unfortunately CDOPackage and CDOCLass doesn't have that kind of information.
>
> Right now to get around that problem... CDOServer needs to know in advance
> which package it will need so it can use EAnnotations.
>
> Do you think it will be good to have such feature ?
>
>
>
>


Re: [CDO][0.8.0] EAnnotation [message #609525 is a reply to message #94193] Sat, 25 August 2007 18:24 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6629
Registered: July 2009
Senior Member
Eike Stepper schrieb:
> Hi Simon,
>
> CDOPackage has a method String getEcore() to receive the serialized
> string of the associated model.
> You can use this method on client-side and on server-side.
> Formerly this method returned null for non-dynamic (generated) models.
> But now that you need this information I have changed the code to
> always store, transfer and return the model XML string.
Sorry, this change caused an exception at another location which I have
to track down ;-(
I've reverted the change in the meantime but I'm working on getting it
in again.

Cheers
/Eike


>
> If you deploy EMF to your server you should be able to deserialize the
> XML model string to an EPackage instance which you can use to query
> annotations.
> Does that help?
>
> Cheers
> /Eike
>
>
> Simon McDuff schrieb:
>> In my model(.ecore), I have information in my annotations that I
>> would like to send to my Store.
>>
>> Right now, EPackages, EClass, EStructuralFeature etc.. are converted
>> in CDOPackage, CDOClass, etc...
>> Store receive these classes.
>>
>> Unfortunately CDOPackage and CDOCLass doesn't have that kind of
>> information.
>>
>> Right now to get around that problem... CDOServer needs to know in
>> advance which package it will need so it can use EAnnotations.
>>
>> Do you think it will be good to have such feature ?
>>
>>
>>
>>


Re: [CDO][0.8.0] EAnnotation [message #609526 is a reply to message #94193] Sat, 25 August 2007 18:43 Go to previous message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
Perfect!

I will try that thank you!


"Eike Stepper" <stepper@sympedia.de> a
Re: [CDO][0.8.0] EAnnotation [message #609529 is a reply to message #94202] Sun, 26 August 2007 07:35 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6629
Registered: July 2009
Senior Member
Hi Simon,

The exception occurred only with EcorePackage.eInstance because EMF does
some setter/getter magic (see EMF newsgroup thread "eGenericSuperTypes").
Currently I have no solution to this problem so I've disabled getEcore()
only for EcorePackage.eInstance. It should work for all other models.

Cheers
/Eike



Eike Stepper schrieb:
> Eike Stepper schrieb:
>> Hi Simon,
>>
>> CDOPackage has a method String getEcore() to receive the serialized
>> string of the associated model.
>> You can use this method on client-side and on server-side.
>> Formerly this method returned null for non-dynamic (generated) models.
>> But now that you need this information I have changed the code to
>> always store, transfer and return the model XML string.
> Sorry, this change caused an exception at another location which I
> have to track down ;-(
> I've reverted the change in the meantime but I'm working on getting it
> in again.
>
> Cheers
> /Eike
>
>
>>
>> If you deploy EMF to your server you should be able to deserialize
>> the XML model string to an EPackage instance which you can use to
>> query annotations.
>> Does that help?
>>
>> Cheers
>> /Eike
>>
>>
>> Simon McDuff schrieb:
>>> In my model(.ecore), I have information in my annotations that I
>>> would like to send to my Store.
>>>
>>> Right now, EPackages, EClass, EStructuralFeature etc.. are
>>> converted in CDOPackage, CDOClass, etc...
>>> Store receive these classes.
>>>
>>> Unfortunately CDOPackage and CDOCLass doesn't have that kind of
>>> information.
>>>
>>> Right now to get around that problem... CDOServer needs to know in
>>> advance which package it will need so it can use EAnnotations.
>>>
>>> Do you think it will be good to have such feature ?
>>>
>>>
>>>
>>>


Previous Topic:Valid Fetch Types
Next Topic:[CDO][0.8.0] Handling Large Collection
Goto Forum:
  


Current Time: Fri Aug 12 08:35:17 GMT 2022

Powered by FUDForum. Page generated in 0.02532 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top