Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 20:31 Go to next message
Andre Pareis is currently offline Andre PareisFriend
Messages: 113
Registered: July 2009
Senior Member
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 16:02 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 16:04 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 #58153 is a reply to message #58048] Thu, 19 October 2006 12:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

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 #58200 is a reply to message #58153] Thu, 19 October 2006 12:49 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 13:00 Go to previous messageGo to next message
Eclipse UserFriend
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 15:57 Go to previous messageGo to next message
Andre Pareis is currently offline Andre PareisFriend
Messages: 113
Registered: July 2009
Senior Member
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&#xD;&#xA;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 16:14 Go to previous messageGo to next message
Eclipse UserFriend
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&#xD;&#xA;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 18:50 Go to previous message
Andre Pareis is currently offline Andre PareisFriend
Messages: 113
Registered: July 2009
Senior Member
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&#xD;&#xA;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 16:02 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 16:04 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 12:06 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
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.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: teneo - annotations in Rational Rose model - anyone? [message #594350 is a reply to message #58153] Thu, 19 October 2006 12:49 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 13:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
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
>>>
>>>
>>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: teneo - annotations in Rational Rose model - anyone? [message #594477 is a reply to message #58225] Fri, 20 October 2006 15:57 Go to previous message
Andre Pareis is currently offline Andre PareisFriend
Messages: 113
Registered: July 2009
Senior Member
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&#xD;&#xA;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 16:14 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
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&#xD;&#xA;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>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: teneo - annotations in Rational Rose model - anyone? [message #594495 is a reply to message #58478] Fri, 20 October 2006 18:50 Go to previous message
Andre Pareis is currently offline Andre PareisFriend
Messages: 113
Registered: July 2009
Senior Member
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&#xD;&#xA;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
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>
Previous Topic:EMFT Transaction 1.0.1: Cannot modify resource set without a write transaction
Next Topic:NPE in StoreResource.java:473
Goto Forum:
  


Current Time: Sat Apr 27 01:07:31 GMT 2024

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

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

Back to the top