Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » teneo - annotations in Rational Rose model - anyone?
teneo - annotations in Rational Rose model - anyone? [message #57951] |
Tue, 17 October 2006 16:31  |
Eclipse User |
|
|
|
Hi,
I have not found a way to specify teneo annotations correctly in Rose in
order to make them appear in the ecore so that it can be correctly
interpreted by teneo runtime.
The problem is that if in the ecore tab I add under annotations the value
teneo.jpa @Embedded
then this is incorrectly parsed as two annotations, one for each word on
the line. I can only guess that this might have to do with the key=value
pairs that are normally expected after the annotation source. With teneo
no key=value pairs are used, only values. I guess that breaks it.
Has anybody else here achieved this?
Andre
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #58048 is a reply to message #57951] |
Wed, 18 October 2006 12:02   |
Eclipse User |
|
|
|
Hi Andre,
Sorry, I don't have rational rose myself.
Ed (if you are watching this thread), do you maybe know this?
gr. Martin
Andre Pareis wrote:
> Hi,
>
> I have not found a way to specify teneo annotations correctly in Rose in
> order to make them appear in the ecore so that it can be correctly
> interpreted by teneo runtime.
>
> The problem is that if in the ecore tab I add under annotations the value
>
> teneo.jpa @Embedded
>
> then this is incorrectly parsed as two annotations, one for each word on
> the line. I can only guess that this might have to do with the key=value
> pairs that are normally expected after the annotation source. With teneo
> no key=value pairs are used, only values. I guess that breaks it.
>
> Has anybody else here achieved this?
>
> Andre
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #58073 is a reply to message #58048] |
Wed, 18 October 2006 12:04   |
Eclipse User |
|
|
|
Hi Andre,
You can also specify annotations in a separate xml file, see here:
http://www.elver.org/hibernate/ejb3_format.html#xml
gr. Martin
Martin Taal wrote:
> Hi Andre,
> Sorry, I don't have rational rose myself.
>
> Ed (if you are watching this thread), do you maybe know this?
>
> gr. Martin
>
> Andre Pareis wrote:
>> Hi,
>>
>> I have not found a way to specify teneo annotations correctly in Rose
>> in order to make them appear in the ecore so that it can be correctly
>> interpreted by teneo runtime.
>>
>> The problem is that if in the ecore tab I add under annotations the value
>>
>> teneo.jpa @Embedded
>>
>> then this is incorrectly parsed as two annotations, one for each word
>> on the line. I can only guess that this might have to do with the
>> key=value pairs that are normally expected after the annotation
>> source. With teneo no key=value pairs are used, only values. I guess
>> that breaks it.
>>
>> Has anybody else here achieved this?
>>
>> Andre
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
| |
Re: teneo - annotations in Rational Rose model - anyone? [message #58200 is a reply to message #58153] |
Thu, 19 October 2006 08:49   |
Eclipse User |
|
|
|
Ed,
The annotation should be of the following format:
source: teneo.jpa
key: value
value (of the annotation): @Embedded
(or any other jpa annotation).
In xml schema the format is:
<xsd:element name="secondEmbedded" type="this:Embeddable">
<xsd:annotation>
<xsd:appinfo source="teneo.jpa">@Embedded</xsd:appinfo>
</xsd:annotation>
</xsd:element>
I do not know the rose ui, but maybe you have an idea how to enter this in Rose?
Or does this help you also Andre?
gr. Martin
Ed Merks wrote:
> Martin,
>
> I couldn't quite tell what kind of annotations Andre is trying to
> specify. There is an "annotation" Ecore property which I described in
>
> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg0 5668.html
>
>
> Martin Taal wrote:
>> Hi Andre,
>> Sorry, I don't have rational rose myself.
>>
>> Ed (if you are watching this thread), do you maybe know this?
>>
>> gr. Martin
>>
>> Andre Pareis wrote:
>>> Hi,
>>>
>>> I have not found a way to specify teneo annotations correctly in Rose
>>> in order to make them appear in the ecore so that it can be correctly
>>> interpreted by teneo runtime.
>>>
>>> The problem is that if in the ecore tab I add under annotations the
>>> value
>>>
>>> teneo.jpa @Embedded
>>>
>>> then this is incorrectly parsed as two annotations, one for each word
>>> on the line. I can only guess that this might have to do with the
>>> key=value pairs that are normally expected after the annotation
>>> source. With teneo no key=value pairs are used, only values. I guess
>>> that breaks it.
>>>
>>> Has anybody else here achieved this?
>>>
>>> Andre
>>
>>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #58225 is a reply to message #58200] |
Thu, 19 October 2006 09:00   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Martin,
I think he'd just enter teneo.jpa value='@Embedded' in the annotation
Ecore property
Martin Taal wrote:
> Ed,
> The annotation should be of the following format:
> source: teneo.jpa
> key: value
> value (of the annotation): @Embedded
> (or any other jpa annotation).
>
> In xml schema the format is:
> <xsd:element name="secondEmbedded" type="this:Embeddable">
> <xsd:annotation>
> <xsd:appinfo source="teneo.jpa">@Embedded</xsd:appinfo>
> </xsd:annotation>
> </xsd:element>
>
> I do not know the rose ui, but maybe you have an idea how to enter
> this in Rose?
> Or does this help you also Andre?
>
> gr. Martin
>
> Ed Merks wrote:
>> Martin,
>>
>> I couldn't quite tell what kind of annotations Andre is trying to
>> specify. There is an "annotation" Ecore property which I described in
>>
>>
>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg0 5668.html
>>
>>
>> Martin Taal wrote:
>>> Hi Andre,
>>> Sorry, I don't have rational rose myself.
>>>
>>> Ed (if you are watching this thread), do you maybe know this?
>>>
>>> gr. Martin
>>>
>>> Andre Pareis wrote:
>>>> Hi,
>>>>
>>>> I have not found a way to specify teneo annotations correctly in
>>>> Rose in order to make them appear in the ecore so that it can be
>>>> correctly interpreted by teneo runtime.
>>>>
>>>> The problem is that if in the ecore tab I add under annotations the
>>>> value
>>>>
>>>> teneo.jpa @Embedded
>>>>
>>>> then this is incorrectly parsed as two annotations, one for each
>>>> word on the line. I can only guess that this might have to do with
>>>> the key=value pairs that are normally expected after the annotation
>>>> source. With teneo no key=value pairs are used, only values. I
>>>> guess that breaks it.
>>>>
>>>> Has anybody else here achieved this?
>>>>
>>>> Andre
>>>
>>>
>>
>
>
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #58471 is a reply to message #58225] |
Fri, 20 October 2006 11:57   |
Eclipse User |
|
|
|
Thanks Ed and Martin for your response. The simple example partially works.
teneo.jpa value='@Embedded'
turns into:
<eClassifiers xsi:type="ecore:EClass"
name="IncomeFromContinuingOperations">
<eAnnotations source="teneo.jpa">
<details key="value" value="@Embedded"/>
</eAnnotations>
...
but a more complex example like this one:
teneo.jpa value='@Table(name="DOM")'
becomes:
<eClassifiers xsi:type="ecore:EClass" name="Domain"
eSuperTypes="#//pareis/trading/Identifiable">
<eAnnotations source="teneo.jpa">
<details key="value='@Table(name" value="DOM"/>
</eAnnotations>
<eAnnotations source=")'"/>
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Represents a
classification or identification system
Examples: ISIN, US, RIC"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="Client"
eType="#//pareis/trading/Client"
transient="true" eOpposite="#//pareis/trading/Client/domains"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="symbols"
upperBound="-1"
eType="#//pareis/trading/Symbol" containment="true"
eOpposite="#//pareis/trading/Symbol/Domain"/>
</eClassifiers>
so what happens is that it breaks key and value at the second "=" which
is the wrong one. I guess this stuff will not work from within Rose.
I will try now with the separate annotations file.
Thanks
Andre
Ed Merks schrieb:
> Martin,
>
> I think he'd just enter teneo.jpa value='@Embedded' in the annotation
> Ecore property
>
>
> Martin Taal wrote:
>
>> Ed,
>> The annotation should be of the following format:
>> source: teneo.jpa
>> key: value
>> value (of the annotation): @Embedded
>> (or any other jpa annotation).
>>
>> In xml schema the format is:
>> <xsd:element name="secondEmbedded" type="this:Embeddable">
>> <xsd:annotation>
>> <xsd:appinfo source="teneo.jpa">@Embedded</xsd:appinfo>
>> </xsd:annotation>
>> </xsd:element>
>>
>> I do not know the rose ui, but maybe you have an idea how to enter
>> this in Rose?
>> Or does this help you also Andre?
>>
>> gr. Martin
>>
>> Ed Merks wrote:
>>
>>> Martin,
>>>
>>> I couldn't quite tell what kind of annotations Andre is trying to
>>> specify. There is an "annotation" Ecore property which I described in
>>>
>>>
>>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg0 5668.html
>>>
>>>
>>> Martin Taal wrote:
>>>
>>>> Hi Andre,
>>>> Sorry, I don't have rational rose myself.
>>>>
>>>> Ed (if you are watching this thread), do you maybe know this?
>>>>
>>>> gr. Martin
>>>>
>>>> Andre Pareis wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have not found a way to specify teneo annotations correctly in
>>>>> Rose in order to make them appear in the ecore so that it can be
>>>>> correctly interpreted by teneo runtime.
>>>>>
>>>>> The problem is that if in the ecore tab I add under annotations the
>>>>> value
>>>>>
>>>>> teneo.jpa @Embedded
>>>>>
>>>>> then this is incorrectly parsed as two annotations, one for each
>>>>> word on the line. I can only guess that this might have to do with
>>>>> the key=value pairs that are normally expected after the annotation
>>>>> source. With teneo no key=value pairs are used, only values. I
>>>>> guess that breaks it.
>>>>>
>>>>> Has anybody else here achieved this?
>>>>>
>>>>> Andre
>>>>
>>>>
>>>>
>>>
>>
>>
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #58478 is a reply to message #58471] |
Fri, 20 October 2006 12:14   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------070007060704070404030109
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Andre,
Try this approach:
teneo.jpa value='@Table(name\075"DOM")'
Characters can be escaped in the usual Java way...
Andre Pareis wrote:
> Thanks Ed and Martin for your response. The simple example partially
> works.
>
> teneo.jpa value='@Embedded'
>
> turns into:
>
> <eClassifiers xsi:type="ecore:EClass"
> name="IncomeFromContinuingOperations">
> <eAnnotations source="teneo.jpa">
> <details key="value" value="@Embedded"/>
> </eAnnotations>
> ...
>
>
>
> but a more complex example like this one:
>
> teneo.jpa value='@Table(name="DOM")'
>
>
> becomes:
>
> <eClassifiers xsi:type="ecore:EClass" name="Domain"
> eSuperTypes="#//pareis/trading/Identifiable">
> <eAnnotations source="teneo.jpa">
> <details key="value='@Table(name" value="DOM"/>
> </eAnnotations>
> <eAnnotations source=")'"/>
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="Represents a
> classification or identification system
Examples: ISIN, US,
> RIC"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="Client"
> eType="#//pareis/trading/Client"
> transient="true"
> eOpposite="#//pareis/trading/Client/domains"/>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="symbols" upperBound="-1"
> eType="#//pareis/trading/Symbol" containment="true"
> eOpposite="#//pareis/trading/Symbol/Domain"/>
> </eClassifiers>
>
>
>
> so what happens is that it breaks key and value at the second "="
> which is the wrong one. I guess this stuff will not work from within
> Rose.
>
> I will try now with the separate annotations file.
>
> Thanks
> Andre
>
>
>
>
> Ed Merks schrieb:
>> Martin,
>>
>> I think he'd just enter teneo.jpa value='@Embedded' in the annotation
>> Ecore property
>>
>>
>> Martin Taal wrote:
>>
>>> Ed,
>>> The annotation should be of the following format:
>>> source: teneo.jpa
>>> key: value
>>> value (of the annotation): @Embedded
>>> (or any other jpa annotation).
>>>
>>> In xml schema the format is:
>>> <xsd:element name="secondEmbedded" type="this:Embeddable">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Embedded</xsd:appinfo>
>>> </xsd:annotation>
>>> </xsd:element>
>>>
>>> I do not know the rose ui, but maybe you have an idea how to enter
>>> this in Rose?
>>> Or does this help you also Andre?
>>>
>>> gr. Martin
>>>
>>> Ed Merks wrote:
>>>
>>>> Martin,
>>>>
>>>> I couldn't quite tell what kind of annotations Andre is trying to
>>>> specify. There is an "annotation" Ecore property which I described in
>>>>
>>>>
>>>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg0 5668.html
>>>>
>>>>
>>>> Martin Taal wrote:
>>>>
>>>>> Hi Andre,
>>>>> Sorry, I don't have rational rose myself.
>>>>>
>>>>> Ed (if you are watching this thread), do you maybe know this?
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> Andre Pareis wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I have not found a way to specify teneo annotations correctly in
>>>>>> Rose in order to make them appear in the ecore so that it can be
>>>>>> correctly interpreted by teneo runtime.
>>>>>>
>>>>>> The problem is that if in the ecore tab I add under annotations
>>>>>> the value
>>>>>>
>>>>>> teneo.jpa @Embedded
>>>>>>
>>>>>> then this is incorrectly parsed as two annotations, one for each
>>>>>> word on the line. I can only guess that this might have to do
>>>>>> with the key=value pairs that are normally expected after the
>>>>>> annotation source. With teneo no key=value pairs are used, only
>>>>>> values. I guess that breaks it.
>>>>>>
>>>>>> Has anybody else here achieved this?
>>>>>>
>>>>>> Andre
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
--------------070007060704070404030109
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andre,<br>
<br>
Try this approach:<br>
<blockquote>teneo.jpa value='@Table(name\075"DOM")' <br>
</blockquote>
Characters can be escaped in the usual Java way...<br>
<br>
<br>
Andre Pareis wrote:
<blockquote cite="mideharm3$4o2$1@utils.eclipse.org" type="cite">Thanks
Ed and Martin for your response. The simple example partially works.
<br>
<br>
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #58480 is a reply to message #58478] |
Fri, 20 October 2006 14:50  |
Eclipse User |
|
|
|
Hi Ed,
that helped! Thanks very much!
Andre
Ed Merks wrote:
> Andre,
>
> Try this approach:
>
> teneo.jpa value='@Table(name\075"DOM")'
>
> Characters can be escaped in the usual Java way...
>
>
> Andre Pareis wrote:
>
>> Thanks Ed and Martin for your response. The simple example partially
>> works.
>>
>> teneo.jpa value='@Embedded'
>>
>> turns into:
>>
>> <eClassifiers xsi:type="ecore:EClass"
>> name="IncomeFromContinuingOperations">
>> <eAnnotations source="teneo.jpa">
>> <details key="value" value="@Embedded"/>
>> </eAnnotations>
>> ...
>>
>>
>>
>> but a more complex example like this one:
>>
>> teneo.jpa value='@Table(name="DOM")'
>>
>>
>> becomes:
>>
>> <eClassifiers xsi:type="ecore:EClass" name="Domain"
>> eSuperTypes="#//pareis/trading/Identifiable">
>> <eAnnotations source="teneo.jpa">
>> <details key="value='@Table(name" value="DOM"/>
>> </eAnnotations>
>> <eAnnotations source=")'"/>
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="Represents a
>> classification or identification system
Examples: ISIN, US,
>> RIC"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="Client"
>> eType="#//pareis/trading/Client"
>> transient="true"
>> eOpposite="#//pareis/trading/Client/domains"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="symbols" upperBound="-1"
>> eType="#//pareis/trading/Symbol" containment="true"
>> eOpposite="#//pareis/trading/Symbol/Domain"/>
>> </eClassifiers>
>>
>>
>>
>> so what happens is that it breaks key and value at the second "="
>> which is the wrong one. I guess this stuff will not work from within
>> Rose.
>>
>> I will try now with the separate annotations file.
>>
>> Thanks
>> Andre
>>
>>
>>
>>
>> Ed Merks schrieb:
>>
>>> Martin,
>>>
>>> I think he'd just enter teneo.jpa value='@Embedded' in the annotation
>>> Ecore property
>>>
>>>
>>> Martin Taal wrote:
>>>
>>>> Ed,
>>>> The annotation should be of the following format:
>>>> source: teneo.jpa
>>>> key: value
>>>> value (of the annotation): @Embedded
>>>> (or any other jpa annotation).
>>>>
>>>> In xml schema the format is:
>>>> <xsd:element name="secondEmbedded" type="this:Embeddable">
>>>> <xsd:annotation>
>>>> <xsd:appinfo source="teneo.jpa">@Embedded</xsd:appinfo>
>>>> </xsd:annotation>
>>>> </xsd:element>
>>>>
>>>> I do not know the rose ui, but maybe you have an idea how to enter
>>>> this in Rose?
>>>> Or does this help you also Andre?
>>>>
>>>> gr. Martin
>>>>
>>>> Ed Merks wrote:
>>>>
>>>>> Martin,
>>>>>
>>>>> I couldn't quite tell what kind of annotations Andre is trying to
>>>>> specify. There is an "annotation" Ecore property which I described in
>>>>>
>>>>>
>>>>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg0 5668.html
>>>>>
>>>>>
>>>>> Martin Taal wrote:
>>>>>
>>>>>> Hi Andre,
>>>>>> Sorry, I don't have rational rose myself.
>>>>>>
>>>>>> Ed (if you are watching this thread), do you maybe know this?
>>>>>>
>>>>>> gr. Martin
>>>>>>
>>>>>> Andre Pareis wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I have not found a way to specify teneo annotations correctly in
>>>>>>> Rose in order to make them appear in the ecore so that it can be
>>>>>>> correctly interpreted by teneo runtime.
>>>>>>>
>>>>>>> The problem is that if in the ecore tab I add under annotations
>>>>>>> the value
>>>>>>>
>>>>>>> teneo.jpa @Embedded
>>>>>>>
>>>>>>> then this is incorrectly parsed as two annotations, one for each
>>>>>>> word on the line. I can only guess that this might have to do
>>>>>>> with the key=value pairs that are normally expected after the
>>>>>>> annotation source. With teneo no key=value pairs are used, only
>>>>>>> values. I guess that breaks it.
>>>>>>>
>>>>>>> Has anybody else here achieved this?
>>>>>>>
>>>>>>> Andre
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #594283 is a reply to message #57951] |
Wed, 18 October 2006 12:02  |
Eclipse User |
|
|
|
Hi Andre,
Sorry, I don't have rational rose myself.
Ed (if you are watching this thread), do you maybe know this?
gr. Martin
Andre Pareis wrote:
> Hi,
>
> I have not found a way to specify teneo annotations correctly in Rose in
> order to make them appear in the ecore so that it can be correctly
> interpreted by teneo runtime.
>
> The problem is that if in the ecore tab I add under annotations the value
>
> teneo.jpa @Embedded
>
> then this is incorrectly parsed as two annotations, one for each word on
> the line. I can only guess that this might have to do with the key=value
> pairs that are normally expected after the annotation source. With teneo
> no key=value pairs are used, only values. I guess that breaks it.
>
> Has anybody else here achieved this?
>
> Andre
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #594290 is a reply to message #58048] |
Wed, 18 October 2006 12:04  |
Eclipse User |
|
|
|
Hi Andre,
You can also specify annotations in a separate xml file, see here:
http://www.elver.org/hibernate/ejb3_format.html#xml
gr. Martin
Martin Taal wrote:
> Hi Andre,
> Sorry, I don't have rational rose myself.
>
> Ed (if you are watching this thread), do you maybe know this?
>
> gr. Martin
>
> Andre Pareis wrote:
>> Hi,
>>
>> I have not found a way to specify teneo annotations correctly in Rose
>> in order to make them appear in the ecore so that it can be correctly
>> interpreted by teneo runtime.
>>
>> The problem is that if in the ecore tab I add under annotations the value
>>
>> teneo.jpa @Embedded
>>
>> then this is incorrectly parsed as two annotations, one for each word
>> on the line. I can only guess that this might have to do with the
>> key=value pairs that are normally expected after the annotation
>> source. With teneo no key=value pairs are used, only values. I guess
>> that breaks it.
>>
>> Has anybody else here achieved this?
>>
>> Andre
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #594329 is a reply to message #58048] |
Thu, 19 October 2006 08:06  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------090007090301030509070603
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Martin,
I couldn't quite tell what kind of annotations Andre is trying to
specify. There is an "annotation" Ecore property which I described in
http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg0 5668.html
Martin Taal wrote:
> Hi Andre,
> Sorry, I don't have rational rose myself.
>
> Ed (if you are watching this thread), do you maybe know this?
>
> gr. Martin
>
> Andre Pareis wrote:
>> Hi,
>>
>> I have not found a way to specify teneo annotations correctly in Rose
>> in order to make them appear in the ecore so that it can be correctly
>> interpreted by teneo runtime.
>>
>> The problem is that if in the ecore tab I add under annotations the
>> value
>>
>> teneo.jpa @Embedded
>>
>> then this is incorrectly parsed as two annotations, one for each word
>> on the line. I can only guess that this might have to do with the
>> key=value pairs that are normally expected after the annotation
>> source. With teneo no key=value pairs are used, only values. I guess
>> that breaks it.
>>
>> Has anybody else here achieved this?
>>
>> Andre
>
>
--------------090007090301030509070603
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Martin,<br>
<br>
I couldn't quite tell what kind of annotations Andre is trying to
specify.
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #594350 is a reply to message #58153] |
Thu, 19 October 2006 08:49  |
Eclipse User |
|
|
|
Ed,
The annotation should be of the following format:
source: teneo.jpa
key: value
value (of the annotation): @Embedded
(or any other jpa annotation).
In xml schema the format is:
<xsd:element name="secondEmbedded" type="this:Embeddable">
<xsd:annotation>
<xsd:appinfo source="teneo.jpa">@Embedded</xsd:appinfo>
</xsd:annotation>
</xsd:element>
I do not know the rose ui, but maybe you have an idea how to enter this in Rose?
Or does this help you also Andre?
gr. Martin
Ed Merks wrote:
> Martin,
>
> I couldn't quite tell what kind of annotations Andre is trying to
> specify. There is an "annotation" Ecore property which I described in
>
> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg0 5668.html
>
>
> Martin Taal wrote:
>> Hi Andre,
>> Sorry, I don't have rational rose myself.
>>
>> Ed (if you are watching this thread), do you maybe know this?
>>
>> gr. Martin
>>
>> Andre Pareis wrote:
>>> Hi,
>>>
>>> I have not found a way to specify teneo annotations correctly in Rose
>>> in order to make them appear in the ecore so that it can be correctly
>>> interpreted by teneo runtime.
>>>
>>> The problem is that if in the ecore tab I add under annotations the
>>> value
>>>
>>> teneo.jpa @Embedded
>>>
>>> then this is incorrectly parsed as two annotations, one for each word
>>> on the line. I can only guess that this might have to do with the
>>> key=value pairs that are normally expected after the annotation
>>> source. With teneo no key=value pairs are used, only values. I guess
>>> that breaks it.
>>>
>>> Has anybody else here achieved this?
>>>
>>> Andre
>>
>>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #594363 is a reply to message #58200] |
Thu, 19 October 2006 09:00  |
Eclipse User |
|
|
|
Martin,
I think he'd just enter teneo.jpa value='@Embedded' in the annotation
Ecore property
Martin Taal wrote:
> Ed,
> The annotation should be of the following format:
> source: teneo.jpa
> key: value
> value (of the annotation): @Embedded
> (or any other jpa annotation).
>
> In xml schema the format is:
> <xsd:element name="secondEmbedded" type="this:Embeddable">
> <xsd:annotation>
> <xsd:appinfo source="teneo.jpa">@Embedded</xsd:appinfo>
> </xsd:annotation>
> </xsd:element>
>
> I do not know the rose ui, but maybe you have an idea how to enter
> this in Rose?
> Or does this help you also Andre?
>
> gr. Martin
>
> Ed Merks wrote:
>> Martin,
>>
>> I couldn't quite tell what kind of annotations Andre is trying to
>> specify. There is an "annotation" Ecore property which I described in
>>
>>
>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg0 5668.html
>>
>>
>> Martin Taal wrote:
>>> Hi Andre,
>>> Sorry, I don't have rational rose myself.
>>>
>>> Ed (if you are watching this thread), do you maybe know this?
>>>
>>> gr. Martin
>>>
>>> Andre Pareis wrote:
>>>> Hi,
>>>>
>>>> I have not found a way to specify teneo annotations correctly in
>>>> Rose in order to make them appear in the ecore so that it can be
>>>> correctly interpreted by teneo runtime.
>>>>
>>>> The problem is that if in the ecore tab I add under annotations the
>>>> value
>>>>
>>>> teneo.jpa @Embedded
>>>>
>>>> then this is incorrectly parsed as two annotations, one for each
>>>> word on the line. I can only guess that this might have to do with
>>>> the key=value pairs that are normally expected after the annotation
>>>> source. With teneo no key=value pairs are used, only values. I
>>>> guess that breaks it.
>>>>
>>>> Has anybody else here achieved this?
>>>>
>>>> Andre
>>>
>>>
>>
>
>
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #594477 is a reply to message #58225] |
Fri, 20 October 2006 11:57  |
Eclipse User |
|
|
|
Thanks Ed and Martin for your response. The simple example partially works.
teneo.jpa value='@Embedded'
turns into:
<eClassifiers xsi:type="ecore:EClass"
name="IncomeFromContinuingOperations">
<eAnnotations source="teneo.jpa">
<details key="value" value="@Embedded"/>
</eAnnotations>
...
but a more complex example like this one:
teneo.jpa value='@Table(name="DOM")'
becomes:
<eClassifiers xsi:type="ecore:EClass" name="Domain"
eSuperTypes="#//pareis/trading/Identifiable">
<eAnnotations source="teneo.jpa">
<details key="value='@Table(name" value="DOM"/>
</eAnnotations>
<eAnnotations source=")'"/>
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Represents a
classification or identification system
Examples: ISIN, US, RIC"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="Client"
eType="#//pareis/trading/Client"
transient="true" eOpposite="#//pareis/trading/Client/domains"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="symbols"
upperBound="-1"
eType="#//pareis/trading/Symbol" containment="true"
eOpposite="#//pareis/trading/Symbol/Domain"/>
</eClassifiers>
so what happens is that it breaks key and value at the second "=" which
is the wrong one. I guess this stuff will not work from within Rose.
I will try now with the separate annotations file.
Thanks
Andre
Ed Merks schrieb:
> Martin,
>
> I think he'd just enter teneo.jpa value='@Embedded' in the annotation
> Ecore property
>
>
> Martin Taal wrote:
>
>> Ed,
>> The annotation should be of the following format:
>> source: teneo.jpa
>> key: value
>> value (of the annotation): @Embedded
>> (or any other jpa annotation).
>>
>> In xml schema the format is:
>> <xsd:element name="secondEmbedded" type="this:Embeddable">
>> <xsd:annotation>
>> <xsd:appinfo source="teneo.jpa">@Embedded</xsd:appinfo>
>> </xsd:annotation>
>> </xsd:element>
>>
>> I do not know the rose ui, but maybe you have an idea how to enter
>> this in Rose?
>> Or does this help you also Andre?
>>
>> gr. Martin
>>
>> Ed Merks wrote:
>>
>>> Martin,
>>>
>>> I couldn't quite tell what kind of annotations Andre is trying to
>>> specify. There is an "annotation" Ecore property which I described in
>>>
>>>
>>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg0 5668.html
>>>
>>>
>>> Martin Taal wrote:
>>>
>>>> Hi Andre,
>>>> Sorry, I don't have rational rose myself.
>>>>
>>>> Ed (if you are watching this thread), do you maybe know this?
>>>>
>>>> gr. Martin
>>>>
>>>> Andre Pareis wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have not found a way to specify teneo annotations correctly in
>>>>> Rose in order to make them appear in the ecore so that it can be
>>>>> correctly interpreted by teneo runtime.
>>>>>
>>>>> The problem is that if in the ecore tab I add under annotations the
>>>>> value
>>>>>
>>>>> teneo.jpa @Embedded
>>>>>
>>>>> then this is incorrectly parsed as two annotations, one for each
>>>>> word on the line. I can only guess that this might have to do with
>>>>> the key=value pairs that are normally expected after the annotation
>>>>> source. With teneo no key=value pairs are used, only values. I
>>>>> guess that breaks it.
>>>>>
>>>>> Has anybody else here achieved this?
>>>>>
>>>>> Andre
>>>>
>>>>
>>>>
>>>
>>
>>
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #594483 is a reply to message #58471] |
Fri, 20 October 2006 12:14  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------070007060704070404030109
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Andre,
Try this approach:
teneo.jpa value='@Table(name\075"DOM")'
Characters can be escaped in the usual Java way...
Andre Pareis wrote:
> Thanks Ed and Martin for your response. The simple example partially
> works.
>
> teneo.jpa value='@Embedded'
>
> turns into:
>
> <eClassifiers xsi:type="ecore:EClass"
> name="IncomeFromContinuingOperations">
> <eAnnotations source="teneo.jpa">
> <details key="value" value="@Embedded"/>
> </eAnnotations>
> ...
>
>
>
> but a more complex example like this one:
>
> teneo.jpa value='@Table(name="DOM")'
>
>
> becomes:
>
> <eClassifiers xsi:type="ecore:EClass" name="Domain"
> eSuperTypes="#//pareis/trading/Identifiable">
> <eAnnotations source="teneo.jpa">
> <details key="value='@Table(name" value="DOM"/>
> </eAnnotations>
> <eAnnotations source=")'"/>
> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="Represents a
> classification or identification system
Examples: ISIN, US,
> RIC"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="Client"
> eType="#//pareis/trading/Client"
> transient="true"
> eOpposite="#//pareis/trading/Client/domains"/>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="symbols" upperBound="-1"
> eType="#//pareis/trading/Symbol" containment="true"
> eOpposite="#//pareis/trading/Symbol/Domain"/>
> </eClassifiers>
>
>
>
> so what happens is that it breaks key and value at the second "="
> which is the wrong one. I guess this stuff will not work from within
> Rose.
>
> I will try now with the separate annotations file.
>
> Thanks
> Andre
>
>
>
>
> Ed Merks schrieb:
>> Martin,
>>
>> I think he'd just enter teneo.jpa value='@Embedded' in the annotation
>> Ecore property
>>
>>
>> Martin Taal wrote:
>>
>>> Ed,
>>> The annotation should be of the following format:
>>> source: teneo.jpa
>>> key: value
>>> value (of the annotation): @Embedded
>>> (or any other jpa annotation).
>>>
>>> In xml schema the format is:
>>> <xsd:element name="secondEmbedded" type="this:Embeddable">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Embedded</xsd:appinfo>
>>> </xsd:annotation>
>>> </xsd:element>
>>>
>>> I do not know the rose ui, but maybe you have an idea how to enter
>>> this in Rose?
>>> Or does this help you also Andre?
>>>
>>> gr. Martin
>>>
>>> Ed Merks wrote:
>>>
>>>> Martin,
>>>>
>>>> I couldn't quite tell what kind of annotations Andre is trying to
>>>> specify. There is an "annotation" Ecore property which I described in
>>>>
>>>>
>>>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg0 5668.html
>>>>
>>>>
>>>> Martin Taal wrote:
>>>>
>>>>> Hi Andre,
>>>>> Sorry, I don't have rational rose myself.
>>>>>
>>>>> Ed (if you are watching this thread), do you maybe know this?
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> Andre Pareis wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I have not found a way to specify teneo annotations correctly in
>>>>>> Rose in order to make them appear in the ecore so that it can be
>>>>>> correctly interpreted by teneo runtime.
>>>>>>
>>>>>> The problem is that if in the ecore tab I add under annotations
>>>>>> the value
>>>>>>
>>>>>> teneo.jpa @Embedded
>>>>>>
>>>>>> then this is incorrectly parsed as two annotations, one for each
>>>>>> word on the line. I can only guess that this might have to do
>>>>>> with the key=value pairs that are normally expected after the
>>>>>> annotation source. With teneo no key=value pairs are used, only
>>>>>> values. I guess that breaks it.
>>>>>>
>>>>>> Has anybody else here achieved this?
>>>>>>
>>>>>> Andre
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
--------------070007060704070404030109
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andre,<br>
<br>
Try this approach:<br>
<blockquote>teneo.jpa value='@Table(name\075"DOM")' <br>
</blockquote>
Characters can be escaped in the usual Java way...<br>
<br>
<br>
Andre Pareis wrote:
<blockquote cite="mideharm3$4o2$1@utils.eclipse.org" type="cite">Thanks
Ed and Martin for your response. The simple example partially works.
<br>
<br>
|
|
|
Re: teneo - annotations in Rational Rose model - anyone? [message #594495 is a reply to message #58478] |
Fri, 20 October 2006 14:50  |
Eclipse User |
|
|
|
Hi Ed,
that helped! Thanks very much!
Andre
Ed Merks wrote:
> Andre,
>
> Try this approach:
>
> teneo.jpa value='@Table(name\075"DOM")'
>
> Characters can be escaped in the usual Java way...
>
>
> Andre Pareis wrote:
>
>> Thanks Ed and Martin for your response. The simple example partially
>> works.
>>
>> teneo.jpa value='@Embedded'
>>
>> turns into:
>>
>> <eClassifiers xsi:type="ecore:EClass"
>> name="IncomeFromContinuingOperations">
>> <eAnnotations source="teneo.jpa">
>> <details key="value" value="@Embedded"/>
>> </eAnnotations>
>> ...
>>
>>
>>
>> but a more complex example like this one:
>>
>> teneo.jpa value='@Table(name="DOM")'
>>
>>
>> becomes:
>>
>> <eClassifiers xsi:type="ecore:EClass" name="Domain"
>> eSuperTypes="#//pareis/trading/Identifiable">
>> <eAnnotations source="teneo.jpa">
>> <details key="value='@Table(name" value="DOM"/>
>> </eAnnotations>
>> <eAnnotations source=")'"/>
>> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
>> <details key="documentation" value="Represents a
>> classification or identification system
Examples: ISIN, US,
>> RIC"/>
>> </eAnnotations>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="Client"
>> eType="#//pareis/trading/Client"
>> transient="true"
>> eOpposite="#//pareis/trading/Client/domains"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="symbols" upperBound="-1"
>> eType="#//pareis/trading/Symbol" containment="true"
>> eOpposite="#//pareis/trading/Symbol/Domain"/>
>> </eClassifiers>
>>
>>
>>
>> so what happens is that it breaks key and value at the second "="
>> which is the wrong one. I guess this stuff will not work from within
>> Rose.
>>
>> I will try now with the separate annotations file.
>>
>> Thanks
>> Andre
>>
>>
>>
>>
>> Ed Merks schrieb:
>>
>>> Martin,
>>>
>>> I think he'd just enter teneo.jpa value='@Embedded' in the annotation
>>> Ecore property
>>>
>>>
>>> Martin Taal wrote:
>>>
>>>> Ed,
>>>> The annotation should be of the following format:
>>>> source: teneo.jpa
>>>> key: value
>>>> value (of the annotation): @Embedded
>>>> (or any other jpa annotation).
>>>>
>>>> In xml schema the format is:
>>>> <xsd:element name="secondEmbedded" type="this:Embeddable">
>>>> <xsd:annotation>
>>>> <xsd:appinfo source="teneo.jpa">@Embedded</xsd:appinfo>
>>>> </xsd:annotation>
>>>> </xsd:element>
>>>>
>>>> I do not know the rose ui, but maybe you have an idea how to enter
>>>> this in Rose?
>>>> Or does this help you also Andre?
>>>>
>>>> gr. Martin
>>>>
>>>> Ed Merks wrote:
>>>>
>>>>> Martin,
>>>>>
>>>>> I couldn't quite tell what kind of annotations Andre is trying to
>>>>> specify. There is an "annotation" Ecore property which I described in
>>>>>
>>>>>
>>>>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg0 5668.html
>>>>>
>>>>>
>>>>> Martin Taal wrote:
>>>>>
>>>>>> Hi Andre,
>>>>>> Sorry, I don't have rational rose myself.
>>>>>>
>>>>>> Ed (if you are watching this thread), do you maybe know this?
>>>>>>
>>>>>> gr. Martin
>>>>>>
>>>>>> Andre Pareis wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I have not found a way to specify teneo annotations correctly in
>>>>>>> Rose in order to make them appear in the ecore so that it can be
>>>>>>> correctly interpreted by teneo runtime.
>>>>>>>
>>>>>>> The problem is that if in the ecore tab I add under annotations
>>>>>>> the value
>>>>>>>
>>>>>>> teneo.jpa @Embedded
>>>>>>>
>>>>>>> then this is incorrectly parsed as two annotations, one for each
>>>>>>> word on the line. I can only guess that this might have to do
>>>>>>> with the key=value pairs that are normally expected after the
>>>>>>> annotation source. With teneo no key=value pairs are used, only
>>>>>>> values. I guess that breaks it.
>>>>>>>
>>>>>>> Has anybody else here achieved this?
>>>>>>>
>>>>>>> Andre
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>
|
|
|
Goto Forum:
Current Time: Thu May 01 05:11:51 EDT 2025
Powered by FUDForum. Page generated in 0.11187 seconds
|