Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [TENEO] No annotated model element present for Diagram
[TENEO] No annotated model element present for Diagram [message #430520] Mon, 25 May 2009 18:56 Go to next message
Eclipse UserFriend
Originally posted by: krdbrm.gmail.com

Hi,
I get the following Exeption if I try mapping my ECOR model.


java.lang.IllegalArgumentException: No annotated model element present
for: Diagram for type EClass has its epackage been registered with Teneo?
at
org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
at
org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
at
org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
at
org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
at
org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
at
org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
at
org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
at
org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
at
org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)




I also registered the following Epackages with dataStore.setEPackages:

myModelPackage.eINSTANCE
NotationPackage.eINSTANCE
EcorePackage.eINSTANCE
XMLTypePackage.eINSTANCE

someone has previously had problems with Diagram? Diagram is an Epackage
from GMF and i dont create it myslef.

thanks a lot
Bahram
Re: [TENEO] No annotated model element present for Diagram [message #430522 is a reply to message #430520] Mon, 25 May 2009 21:02 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Bahram,
What is the epackage which contains Diagram? That one also needs to be registered.

gr. Martin

Bahram Kord wrote:
>
> Hi,
> I get the following Exeption if I try mapping my ECOR model.
>
>
> java.lang.IllegalArgumentException: No annotated model element present
> for: Diagram for type EClass has its epackage been registered with Teneo?
> at
> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>
> at
> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>
> at
> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>
> at
> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>
> at
> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>
>
>
>
>
> I also registered the following Epackages with dataStore.setEPackages:
>
> myModelPackage.eINSTANCE
> NotationPackage.eINSTANCE
> EcorePackage.eINSTANCE
> XMLTypePackage.eINSTANCE
>
> someone has previously had problems with Diagram? Diagram is an Epackage
> from GMF and i dont create it myslef.
>
> thanks a lot
> Bahram


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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] No annotated model element present for Diagram [message #430523 is a reply to message #430522] Tue, 26 May 2009 00:09 Go to previous messageGo to next message
Bahram is currently offline BahramFriend
Messages: 5
Registered: July 2009
Junior Member
Hi Martin,
tanks for your message.
I mean Diagram from org.eclipse.gmf.runtime.notation.NotationPackage. I
registered also this Package although have this Exeption.

gr. Bahram

Martin Taal schrieb:
> Hi Bahram,
> What is the epackage which contains Diagram? That one also needs to be
> registered.
>
> gr. Martin
>
> Bahram Kord wrote:
>>
>> Hi,
>> I get the following Exeption if I try mapping my ECOR model.
>>
>>
>> java.lang.IllegalArgumentException: No annotated model element present
>> for: Diagram for type EClass has its epackage been registered with Teneo?
>> at
>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>
>> at
>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>
>> at
>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>
>> at
>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>
>> at
>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>
>> at
>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>
>>
>>
>>
>>
>> I also registered the following Epackages with dataStore.setEPackages:
>>
>> myModelPackage.eINSTANCE
>> NotationPackage.eINSTANCE
>> EcorePackage.eINSTANCE
>> XMLTypePackage.eINSTANCE
>>
>> someone has previously had problems with Diagram? Diagram is an
>> Epackage from GMF and i dont create it myslef.
>>
>> thanks a lot
>> Bahram
>
>
Re: [TENEO] No annotated model element present for Diagram [message #430524 is a reply to message #430523] Tue, 26 May 2009 04:03 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Bahram,
The line numbers in the exception trace do not seem to match with what I have. Which version are you using?

gr. Martin

Bahram wrote:
> Hi Martin,
> tanks for your message.
> I mean Diagram from org.eclipse.gmf.runtime.notation.NotationPackage. I
> registered also this Package although have this Exeption.
>
> gr. Bahram
>
> Martin Taal schrieb:
>> Hi Bahram,
>> What is the epackage which contains Diagram? That one also needs to be
>> registered.
>>
>> gr. Martin
>>
>> Bahram Kord wrote:
>>>
>>> Hi,
>>> I get the following Exeption if I try mapping my ECOR model.
>>>
>>>
>>> java.lang.IllegalArgumentException: No annotated model element
>>> present for: Diagram for type EClass has its epackage been registered
>>> with Teneo?
>>> at
>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>>
>>> at
>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>>
>>> at
>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>>
>>> at
>>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>>
>>> at
>>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>>
>>> at
>>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>>
>>> at
>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>>
>>> at
>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>>
>>> at
>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>>
>>> at
>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>>
>>> at
>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>>
>>> at
>>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>>
>>>
>>>
>>>
>>>
>>> I also registered the following Epackages with dataStore.setEPackages:
>>>
>>> myModelPackage.eINSTANCE
>>> NotationPackage.eINSTANCE
>>> EcorePackage.eINSTANCE
>>> XMLTypePackage.eINSTANCE
>>>
>>> someone has previously had problems with Diagram? Diagram is an
>>> Epackage from GMF and i dont create it myslef.
>>>
>>> thanks a lot
>>> Bahram
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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] No annotated model element present for Diagram [message #430527 is a reply to message #430524] Tue, 26 May 2009 05:49 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6460
Registered: July 2009
Senior Member
Guys,

Can Teneo persist instance of Ecore or instances of EClasses that extend
EModelElements? The GMF notation model derives most of its classes from
EModelElement, as does UML2 or OCL (not so many here).

Cheers
/Eike

----
http://thegordian.blogspot.com



Martin Taal schrieb:
> Hi Bahram,
> The line numbers in the exception trace do not seem to match with what
> I have. Which version are you using?
>
> gr. Martin
>
> Bahram wrote:
>> Hi Martin,
>> tanks for your message.
>> I mean Diagram from org.eclipse.gmf.runtime.notation.NotationPackage.
>> I registered also this Package although have this Exeption.
>>
>> gr. Bahram
>>
>> Martin Taal schrieb:
>>> Hi Bahram,
>>> What is the epackage which contains Diagram? That one also needs to
>>> be registered.
>>>
>>> gr. Martin
>>>
>>> Bahram Kord wrote:
>>>>
>>>> Hi,
>>>> I get the following Exeption if I try mapping my ECOR model.
>>>>
>>>>
>>>> java.lang.IllegalArgumentException: No annotated model element
>>>> present for: Diagram for type EClass has its epackage been
>>>> registered with Teneo?
>>>> at
>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> I also registered the following Epackages with dataStore.setEPackages:
>>>>
>>>> myModelPackage.eINSTANCE
>>>> NotationPackage.eINSTANCE
>>>> EcorePackage.eINSTANCE
>>>> XMLTypePackage.eINSTANCE
>>>>
>>>> someone has previously had problems with Diagram? Diagram is an
>>>> Epackage from GMF and i dont create it myslef.
>>>>
>>>> thanks a lot
>>>> Bahram
>>>
>>>
>
>


Re: [TENEO] No annotated model element present for Diagram [message #430528 is a reply to message #430527] Tue, 26 May 2009 06:21 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Eike,
Yes the ecore model itself can also be persisted with Teneo.

gr. Martin

Eike Stepper wrote:
> Guys,
>
> Can Teneo persist instance of Ecore or instances of EClasses that extend
> EModelElements? The GMF notation model derives most of its classes from
> EModelElement, as does UML2 or OCL (not so many here).
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> Martin Taal schrieb:
>> Hi Bahram,
>> The line numbers in the exception trace do not seem to match with what
>> I have. Which version are you using?
>>
>> gr. Martin
>>
>> Bahram wrote:
>>> Hi Martin,
>>> tanks for your message.
>>> I mean Diagram from org.eclipse.gmf.runtime.notation.NotationPackage.
>>> I registered also this Package although have this Exeption.
>>>
>>> gr. Bahram
>>>
>>> Martin Taal schrieb:
>>>> Hi Bahram,
>>>> What is the epackage which contains Diagram? That one also needs to
>>>> be registered.
>>>>
>>>> gr. Martin
>>>>
>>>> Bahram Kord wrote:
>>>>> Hi,
>>>>> I get the following Exeption if I try mapping my ECOR model.
>>>>>
>>>>>
>>>>> java.lang.IllegalArgumentException: No annotated model element
>>>>> present for: Diagram for type EClass has its epackage been
>>>>> registered with Teneo?
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I also registered the following Epackages with dataStore.setEPackages:
>>>>>
>>>>> myModelPackage.eINSTANCE
>>>>> NotationPackage.eINSTANCE
>>>>> EcorePackage.eINSTANCE
>>>>> XMLTypePackage.eINSTANCE
>>>>>
>>>>> someone has previously had problems with Diagram? Diagram is an
>>>>> Epackage from GMF and i dont create it myslef.
>>>>>
>>>>> thanks a lot
>>>>> Bahram
>>>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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] No annotated model element present for Diagram [message #430530 is a reply to message #430524] Tue, 26 May 2009 07:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: krdbrm.gmail.com

Hi,
I am using Teneo EMF version 1.0.1.v200809211527-....
best regards
Bahram

Martin Taal schrieb:
> Hi Bahram,
> The line numbers in the exception trace do not seem to match with what I
> have. Which version are you using?
>
> gr. Martin
>
> Bahram wrote:
>> Hi Martin,
>> tanks for your message.
>> I mean Diagram from org.eclipse.gmf.runtime.notation.NotationPackage.
>> I registered also this Package although have this Exeption.
>>
>> gr. Bahram
>>
>> Martin Taal schrieb:
>>> Hi Bahram,
>>> What is the epackage which contains Diagram? That one also needs to
>>> be registered.
>>>
>>> gr. Martin
>>>
>>> Bahram Kord wrote:
>>>>
>>>> Hi,
>>>> I get the following Exeption if I try mapping my ECOR model.
>>>>
>>>>
>>>> java.lang.IllegalArgumentException: No annotated model element
>>>> present for: Diagram for type EClass has its epackage been
>>>> registered with Teneo?
>>>> at
>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> I also registered the following Epackages with dataStore.setEPackages:
>>>>
>>>> myModelPackage.eINSTANCE
>>>> NotationPackage.eINSTANCE
>>>> EcorePackage.eINSTANCE
>>>> XMLTypePackage.eINSTANCE
>>>>
>>>> someone has previously had problems with Diagram? Diagram is an
>>>> Epackage from GMF and i dont create it myslef.
>>>>
>>>> thanks a lot
>>>> Bahram
>>>
>>>
>
>
Re: [TENEO] No annotated model element present for Diagram [message #430533 is a reply to message #430530] Tue, 26 May 2009 10:17 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Bahram,
Possibly it helps if you can upgrade to a more recent version of Teneo:
see the 1.0.4 maintenance builds in the bottom of this page:
http://www.eclipse.org/modeling/emf/downloads/?project=teneo
or the 1.1.0 build for Eclipse 3.5

gr. Martin

Bahram Kord wrote:
> Hi,
> I am using Teneo EMF version 1.0.1.v200809211527-....
> best regards
> Bahram
>
> Martin Taal schrieb:
>> Hi Bahram,
>> The line numbers in the exception trace do not seem to match with what
>> I have. Which version are you using?
>>
>> gr. Martin
>>
>> Bahram wrote:
>>> Hi Martin,
>>> tanks for your message.
>>> I mean Diagram from org.eclipse.gmf.runtime.notation.NotationPackage.
>>> I registered also this Package although have this Exeption.
>>>
>>> gr. Bahram
>>>
>>> Martin Taal schrieb:
>>>> Hi Bahram,
>>>> What is the epackage which contains Diagram? That one also needs to
>>>> be registered.
>>>>
>>>> gr. Martin
>>>>
>>>> Bahram Kord wrote:
>>>>>
>>>>> Hi,
>>>>> I get the following Exeption if I try mapping my ECOR model.
>>>>>
>>>>>
>>>>> java.lang.IllegalArgumentException: No annotated model element
>>>>> present for: Diagram for type EClass has its epackage been
>>>>> registered with Teneo?
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I also registered the following Epackages with dataStore.setEPackages:
>>>>>
>>>>> myModelPackage.eINSTANCE
>>>>> NotationPackage.eINSTANCE
>>>>> EcorePackage.eINSTANCE
>>>>> XMLTypePackage.eINSTANCE
>>>>>
>>>>> someone has previously had problems with Diagram? Diagram is an
>>>>> Epackage from GMF and i dont create it myslef.
>>>>>
>>>>> thanks a lot
>>>>> Bahram
>>>>
>>>>
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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] ID from EString [message #430614 is a reply to message #430533] Fri, 29 May 2009 19:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: krdbrm.gmail.com

Hi Martin,
Thank you. it works. but I have now following Exception.

java.lang.ClassCastException: java.lang.String
at org.hibernate.type.LongType.set(LongType.java:42)
at org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:136)
at org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:107)
at org.hibernate.type.AnyType.nullSafeSet(AnyType.java:144)
at
org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1997)
at
org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1974)
at
org.hibernate.persister.entity.AbstractEntityPersister$3.bin dValues(AbstractEntityPersister.java:2152)
at
org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:32)
at
org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
at
org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
at
org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :495)
at
org.eclipse.emf.teneo.hibernate.HbSessionWrapper.saveOrUpdat e(HbSessionWrapper.java:161)
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:353)
at
org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:430)
at
org.efixes.ui.EfixesProjectCreationWizardDb.performFinish(Ef ixesProjectCreationWizardDb.java:243)
at
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)


I have in mapping Statements following Tag about Id :

<class name="org.efixes.impl.IdentifiableImpl"
entity-name="Identifiable" abstract="true" lazy="false"
discriminator-value="Identifiable" table="`identifiable`">
<meta attribute="eclassName">Identifiable</meta>
<meta
attribute="epackage">http://www.efixes.org/efixes.ecore/efixes</meta>
<id name="id" type="java.lang.String">
<column not-null="true" unique="false" name="`id`"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version"
access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
<meta attribute="syntheticVersion">true</meta>
</version>
</class>


can you pls help me to solve this problem. I will not change my Id-Type
to ELong.

Best rgards.
Bahram



Martin Taal schrieb:
> Hi Bahram,
> Possibly it helps if you can upgrade to a more recent version of Teneo:
> see the 1.0.4 maintenance builds in the bottom of this page:
> http://www.eclipse.org/modeling/emf/downloads/?project=teneo
> or the 1.1.0 build for Eclipse 3.5
>
> gr. Martin
>
> Bahram Kord wrote:
>> Hi,
>> I am using Teneo EMF version 1.0.1.v200809211527-....
>> best regards
>> Bahram
>>
>> Martin Taal schrieb:
>>> Hi Bahram,
>>> The line numbers in the exception trace do not seem to match with
>>> what I have. Which version are you using?
>>>
>>> gr. Martin
>>>
>>> Bahram wrote:
>>>> Hi Martin,
>>>> tanks for your message.
>>>> I mean Diagram from
>>>> org.eclipse.gmf.runtime.notation.NotationPackage. I registered
>>>> also this Package although have this Exeption.
>>>>
>>>> gr. Bahram
>>>>
>>>> Martin Taal schrieb:
>>>>> Hi Bahram,
>>>>> What is the epackage which contains Diagram? That one also needs to
>>>>> be registered.
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> Bahram Kord wrote:
>>>>>>
>>>>>> Hi,
>>>>>> I get the following Exeption if I try mapping my ECOR model.
>>>>>>
>>>>>>
>>>>>> java.lang.IllegalArgumentException: No annotated model element
>>>>>> present for: Diagram for type EClass has its epackage been
>>>>>> registered with Teneo?
>>>>>> at
>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> I also registered the following Epackages with
>>>>>> dataStore.setEPackages:
>>>>>>
>>>>>> myModelPackage.eINSTANCE
>>>>>> NotationPackage.eINSTANCE
>>>>>> EcorePackage.eINSTANCE
>>>>>> XMLTypePackage.eINSTANCE
>>>>>>
>>>>>> someone has previously had problems with Diagram? Diagram is an
>>>>>> Epackage from GMF and i dont create it myslef.
>>>>>>
>>>>>> thanks a lot
>>>>>> Bahram
>>>>>
>>>>>
>>>
>>>
>
>
Re: [TENEO] ID from EString [message #430617 is a reply to message #430614] Fri, 29 May 2009 20:34 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Bahram,
I am not sure if it is the ID it is failing on. Can you put a breakpoint in AnyType and check which column/efeature it
is trying to set?

gr. Martin

Bahram Kord wrote:
> Hi Martin,
> Thank you. it works. but I have now following Exception.
>
> java.lang.ClassCastException: java.lang.String
> at org.hibernate.type.LongType.set(LongType.java:42)
> at org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:136)
> at org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:107)
> at org.hibernate.type.AnyType.nullSafeSet(AnyType.java:144)
> at
> org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1997)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1974)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister$3.bin dValues(AbstractEntityPersister.java:2152)
>
> at
> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:32)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
>
> at
> org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
>
> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>
> at
> org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
> at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
> at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :495)
> at
> org.eclipse.emf.teneo.hibernate.HbSessionWrapper.saveOrUpdat e(HbSessionWrapper.java:161)
>
> at
> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:353)
>
> at
> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:430)
> at
> org.efixes.ui.EfixesProjectCreationWizardDb.performFinish(Ef ixesProjectCreationWizardDb.java:243)
>
> at
> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>
>
> I have in mapping Statements following Tag about Id :
>
> <class name="org.efixes.impl.IdentifiableImpl"
> entity-name="Identifiable" abstract="true" lazy="false"
> discriminator-value="Identifiable" table="`identifiable`">
> <meta attribute="eclassName">Identifiable</meta>
> <meta
> attribute="epackage">http://www.efixes.org/efixes.ecore/efixes</meta>
> <id name="id" type="java.lang.String">
> <column not-null="true" unique="false" name="`id`"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" column="e_version"
> access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
>
> <meta attribute="syntheticVersion">true</meta>
> </version>
> </class>
>
>
> can you pls help me to solve this problem. I will not change my Id-Type
> to ELong.
>
> Best rgards.
> Bahram
>
>
>
> Martin Taal schrieb:
>> Hi Bahram,
>> Possibly it helps if you can upgrade to a more recent version of Teneo:
>> see the 1.0.4 maintenance builds in the bottom of this page:
>> http://www.eclipse.org/modeling/emf/downloads/?project=teneo
>> or the 1.1.0 build for Eclipse 3.5
>>
>> gr. Martin
>>
>> Bahram Kord wrote:
>>> Hi,
>>> I am using Teneo EMF version 1.0.1.v200809211527-....
>>> best regards
>>> Bahram
>>>
>>> Martin Taal schrieb:
>>>> Hi Bahram,
>>>> The line numbers in the exception trace do not seem to match with
>>>> what I have. Which version are you using?
>>>>
>>>> gr. Martin
>>>>
>>>> Bahram wrote:
>>>>> Hi Martin,
>>>>> tanks for your message.
>>>>> I mean Diagram from
>>>>> org.eclipse.gmf.runtime.notation.NotationPackage. I registered
>>>>> also this Package although have this Exeption.
>>>>>
>>>>> gr. Bahram
>>>>>
>>>>> Martin Taal schrieb:
>>>>>> Hi Bahram,
>>>>>> What is the epackage which contains Diagram? That one also needs
>>>>>> to be registered.
>>>>>>
>>>>>> gr. Martin
>>>>>>
>>>>>> Bahram Kord wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>> I get the following Exeption if I try mapping my ECOR model.
>>>>>>>
>>>>>>>
>>>>>>> java.lang.IllegalArgumentException: No annotated model element
>>>>>>> present for: Diagram for type EClass has its epackage been
>>>>>>> registered with Teneo?
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>>>>>>
>>>>>>> at
>>>>>>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I also registered the following Epackages with
>>>>>>> dataStore.setEPackages:
>>>>>>>
>>>>>>> myModelPackage.eINSTANCE
>>>>>>> NotationPackage.eINSTANCE
>>>>>>> EcorePackage.eINSTANCE
>>>>>>> XMLTypePackage.eINSTANCE
>>>>>>>
>>>>>>> someone has previously had problems with Diagram? Diagram is an
>>>>>>> Epackage from GMF and i dont create it myslef.
>>>>>>>
>>>>>>> thanks a lot
>>>>>>> Bahram
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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] ID from EString [message #430690 is a reply to message #430617] Thu, 04 June 2009 00:12 Go to previous messageGo to next message
Bahram is currently offline BahramFriend
Messages: 5
Registered: July 2009
Junior Member
Hi Martin,

I have this problem if i try to set an Element to my Diagram. I set
Diagram with
diagram .setElement(myModel);
I found many Discoution about this problem but any solution.

gr. Bahram

Martin Taal schrieb:
> Hi Bahram,
> I am not sure if it is the ID it is failing on. Can you put a breakpoint
> in AnyType and check which column/efeature it is trying to set?
>
> gr. Martin
>
> Bahram Kord wrote:
>> Hi Martin,
>> Thank you. it works. but I have now following Exception.
>>
>> java.lang.ClassCastException: java.lang.String
>> at org.hibernate.type.LongType.set(LongType.java:42)
>> at org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:136)
>> at org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:107)
>> at org.hibernate.type.AnyType.nullSafeSet(AnyType.java:144)
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1997)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1974)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister$3.bin dValues(AbstractEntityPersister.java:2152)
>>
>> at
>> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:32)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
>>
>> at
>> org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
>>
>> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>>
>> at
>> org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
>> at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
>> at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :495)
>> at
>> org.eclipse.emf.teneo.hibernate.HbSessionWrapper.saveOrUpdat e(HbSessionWrapper.java:161)
>>
>> at
>> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:353)
>>
>> at
>> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:430)
>> at
>> org.efixes.ui.EfixesProjectCreationWizardDb.performFinish(Ef ixesProjectCreationWizardDb.java:243)
>>
>> at
>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>>
>>
>>
>> I have in mapping Statements following Tag about Id :
>>
>> <class name="org.efixes.impl.IdentifiableImpl"
>> entity-name="Identifiable" abstract="true" lazy="false"
>> discriminator-value="Identifiable" table="`identifiable`">
>> <meta attribute="eclassName">Identifiable</meta>
>> <meta
>> attribute="epackage">http://www.efixes.org/efixes.ecore/efixes</meta>
>> <id name="id" type="java.lang.String">
>> <column not-null="true" unique="false" name="`id`"/>
>> </id>
>> <discriminator column="`dtype`" type="string"/>
>> <version name="e_version" column="e_version"
>> access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
>>
>> <meta attribute="syntheticVersion">true</meta>
>> </version>
>> </class>
>>
>>
>> can you pls help me to solve this problem. I will not change my
>> Id-Type to ELong.
>>
>> Best rgards.
>> Bahram
>>
>>
>>
>> Martin Taal schrieb:
>>> Hi Bahram,
>>> Possibly it helps if you can upgrade to a more recent version of Teneo:
>>> see the 1.0.4 maintenance builds in the bottom of this page:
>>> http://www.eclipse.org/modeling/emf/downloads/?project=teneo
>>> or the 1.1.0 build for Eclipse 3.5
>>>
>>> gr. Martin
>>>
>>> Bahram Kord wrote:
>>>> Hi,
>>>> I am using Teneo EMF version 1.0.1.v200809211527-....
>>>> best regards
>>>> Bahram
>>>>
>>>> Martin Taal schrieb:
>>>>> Hi Bahram,
>>>>> The line numbers in the exception trace do not seem to match with
>>>>> what I have. Which version are you using?
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> Bahram wrote:
>>>>>> Hi Martin,
>>>>>> tanks for your message.
>>>>>> I mean Diagram from
>>>>>> org.eclipse.gmf.runtime.notation.NotationPackage. I registered
>>>>>> also this Package although have this Exeption.
>>>>>>
>>>>>> gr. Bahram
>>>>>>
>>>>>> Martin Taal schrieb:
>>>>>>> Hi Bahram,
>>>>>>> What is the epackage which contains Diagram? That one also needs
>>>>>>> to be registered.
>>>>>>>
>>>>>>> gr. Martin
>>>>>>>
>>>>>>> Bahram Kord wrote:
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>> I get the following Exeption if I try mapping my ECOR model.
>>>>>>>>
>>>>>>>>
>>>>>>>> java.lang.IllegalArgumentException: No annotated model element
>>>>>>>> present for: Diagram for type EClass has its epackage been
>>>>>>>> registered with Teneo?
>>>>>>>> at
>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>>>>>>>
>>>>>>>> at
>>>>>>>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I also registered the following Epackages with
>>>>>>>> dataStore.setEPackages:
>>>>>>>>
>>>>>>>> myModelPackage.eINSTANCE
>>>>>>>> NotationPackage.eINSTANCE
>>>>>>>> EcorePackage.eINSTANCE
>>>>>>>> XMLTypePackage.eINSTANCE
>>>>>>>>
>>>>>>>> someone has previously had problems with Diagram? Diagram is an
>>>>>>>> Epackage from GMF and i dont create it myslef.
>>>>>>>>
>>>>>>>> thanks a lot
>>>>>>>> Bahram
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>
>>>
>
>
Re: [TENEO] ID from EString [message #430692 is a reply to message #430690] Thu, 04 June 2009 05:48 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Bahram,
I think we need to dig a bit deeper.
It fails in this statement:
identifierType.nullSafeSet(st, id, index+1, idsettable, session);
Apparently hibernate thinks that the id is a long while the value in the object is a string. Looking at the mapping you
showed below there is no reason why hibernate would assume that the id is a long. So my feel is that this exception is
for another object/efeature.

Can you put a breakpoint in AnyType and check which column/efeature from which eclass it is trying to set in the Anytype?
An easy way to get the sources visible in eclipse is to open the hibernate.jar and add the source directory of hibernate
to it (so the jar contains both sources and classes).

Then when you have found it also post the mapping of the eclass and the id hibernate mapping (if that is done in a super
type).

gr. Martin

Bahram wrote:
> Hi Martin,
>
> I have this problem if i try to set an Element to my Diagram. I set
> Diagram with
> diagram .setElement(myModel);
> I found many Discoution about this problem but any solution.
>
> gr. Bahram
>
> Martin Taal schrieb:
>> Hi Bahram,
>> I am not sure if it is the ID it is failing on. Can you put a
>> breakpoint in AnyType and check which column/efeature it is trying to
>> set?
>>
>> gr. Martin
>>
>> Bahram Kord wrote:
>>> Hi Martin,
>>> Thank you. it works. but I have now following Exception.
>>>
>>> java.lang.ClassCastException: java.lang.String
>>> at org.hibernate.type.LongType.set(LongType.java:42)
>>> at
>>> org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:136)
>>> at
>>> org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:107)
>>> at org.hibernate.type.AnyType.nullSafeSet(AnyType.java:144)
>>> at
>>> org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1997)
>>>
>>> at
>>> org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1974)
>>>
>>> at
>>> org.hibernate.persister.entity.AbstractEntityPersister$3.bin dValues(AbstractEntityPersister.java:2152)
>>>
>>> at
>>> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:32)
>>>
>>> at
>>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
>>>
>>> at
>>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
>>>
>>> at
>>> org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
>>>
>>> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
>>> at
>>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
>>>
>>> at
>>> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
>>>
>>> at
>>> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
>>>
>>> at
>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
>>>
>>> at
>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>>>
>>> at
>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
>>>
>>> at
>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>>>
>>> at
>>> org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
>>> at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
>>> at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :495)
>>> at
>>> org.eclipse.emf.teneo.hibernate.HbSessionWrapper.saveOrUpdat e(HbSessionWrapper.java:161)
>>>
>>> at
>>> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:353)
>>>
>>> at
>>> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:430)
>>>
>>> at
>>> org.efixes.ui.EfixesProjectCreationWizardDb.performFinish(Ef ixesProjectCreationWizardDb.java:243)
>>>
>>> at
>>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>>>
>>>
>>>
>>> I have in mapping Statements following Tag about Id :
>>>
>>> <class name="org.efixes.impl.IdentifiableImpl"
>>> entity-name="Identifiable" abstract="true" lazy="false"
>>> discriminator-value="Identifiable" table="`identifiable`">
>>> <meta attribute="eclassName">Identifiable</meta>
>>> <meta
>>> attribute="epackage">http://www.efixes.org/efixes.ecore/efixes</meta>
>>> <id name="id" type="java.lang.String">
>>> <column not-null="true" unique="false" name="`id`"/>
>>> </id>
>>> <discriminator column="`dtype`" type="string"/>
>>> <version name="e_version" column="e_version"
>>> access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
>>>
>>> <meta attribute="syntheticVersion">true</meta>
>>> </version>
>>> </class>
>>>
>>>
>>> can you pls help me to solve this problem. I will not change my
>>> Id-Type to ELong.
>>>
>>> Best rgards.
>>> Bahram
>>>
>>>
>>>
>>> Martin Taal schrieb:
>>>> Hi Bahram,
>>>> Possibly it helps if you can upgrade to a more recent version of Teneo:
>>>> see the 1.0.4 maintenance builds in the bottom of this page:
>>>> http://www.eclipse.org/modeling/emf/downloads/?project=teneo
>>>> or the 1.1.0 build for Eclipse 3.5
>>>>
>>>> gr. Martin
>>>>
>>>> Bahram Kord wrote:
>>>>> Hi,
>>>>> I am using Teneo EMF version 1.0.1.v200809211527-....
>>>>> best regards
>>>>> Bahram
>>>>>
>>>>> Martin Taal schrieb:
>>>>>> Hi Bahram,
>>>>>> The line numbers in the exception trace do not seem to match with
>>>>>> what I have. Which version are you using?
>>>>>>
>>>>>> gr. Martin
>>>>>>
>>>>>> Bahram wrote:
>>>>>>> Hi Martin,
>>>>>>> tanks for your message.
>>>>>>> I mean Diagram from
>>>>>>> org.eclipse.gmf.runtime.notation.NotationPackage. I registered
>>>>>>> also this Package although have this Exeption.
>>>>>>>
>>>>>>> gr. Bahram
>>>>>>>
>>>>>>> Martin Taal schrieb:
>>>>>>>> Hi Bahram,
>>>>>>>> What is the epackage which contains Diagram? That one also needs
>>>>>>>> to be registered.
>>>>>>>>
>>>>>>>> gr. Martin
>>>>>>>>
>>>>>>>> Bahram Kord wrote:
>>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>> I get the following Exeption if I try mapping my ECOR model.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> java.lang.IllegalArgumentException: No annotated model element
>>>>>>>>> present for: Diagram for type EClass has its epackage been
>>>>>>>>> registered with Teneo?
>>>>>>>>> at
>>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>>>>>>>>
>>>>>>>>> at
>>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>>>>>>>>
>>>>>>>>> at
>>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>>>>>>>>
>>>>>>>>> at
>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>>>>>>>>
>>>>>>>>> at
>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>>>>>>>>
>>>>>>>>> at
>>>>>>>>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>>>>>>>>
>>>>>>>>> at
>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>>>>>>>>
>>>>>>>>> at
>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>>>>>>>>
>>>>>>>>> at
>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>>>>>>>>
>>>>>>>>> at
>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>>>>>>>>
>>>>>>>>> at
>>>>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>>>>>>>>
>>>>>>>>> at
>>>>>>>>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I also registered the following Epackages with
>>>>>>>>> dataStore.setEPackages:
>>>>>>>>>
>>>>>>>>> myModelPackage.eINSTANCE
>>>>>>>>> NotationPackage.eINSTANCE
>>>>>>>>> EcorePackage.eINSTANCE
>>>>>>>>> XMLTypePackage.eINSTANCE
>>>>>>>>>
>>>>>>>>> someone has previously had problems with Diagram? Diagram is an
>>>>>>>>> Epackage from GMF and i dont create it myslef.
>>>>>>>>>
>>>>>>>>> thanks a lot
>>>>>>>>> Bahram
>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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] ID from EString [message #431069 is a reply to message #430692] Thu, 25 June 2009 15:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: krdbrm.gmail.com

Hi martin,
thank you for your replay an sorry for delay of my message.

I set the breakpoint at the anyType. this problem caused by setting an Embeddedsoftware to Diagram

EmbeddedSoftware mapping :
<subclass name="org.efixes.software.impl.EmbeddedSoftwareImpl" entity-name="EmbeddedSoftware" abstract="false" lazy="false" extends="SoftwareElement" discriminator-value="EmbeddedSoftware">
<meta attribute="eclassName">EmbeddedSoftware</meta>
<meta attribute="epackage">http://www.efixes.org/efixes.ecore/efixes/software</meta>
<list name="tasks" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="embeddedsoftware_tasks">
<column name="`embeddedsoftware_tasks_id`" not-null="false" unique="false"/>
</key>
<list-index column="`embeddedsoftware_tasks_idx`"/>
<one-to-many entity-name="Task"/>
</list>
<list name="softwareConnections" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="embeddedsoftware_softwareconnections">
<column name="`embeddedsoftware_softwareconnections_id`" not-null="false" unique="false"/>
</key>
<list-index column="`embeddedsoftware_softwareconnections_idx`"/>
<one-to-many entity-name="SoftwareConnection"/>
</list>
<list name="ports" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="embeddedsoftware_ports">
<column name="`embeddedsoftware_ports_id`" not-null="false" unique="false"/>
</key>
<list-index column="`embeddedsoftware_ports_idx`"/>
<one-to-many entity-name="Port"/>
</list>
<list name="sources" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="embeddedsoftware_sources">
<column name="`embeddedsoftware_sources_id`" not-null="false" unique="false"/>
</key>
<list-index column="`embeddedsoftware_sources_idx`"/>
<one-to-many entity-name="Source"/>
</list>
<list name="sinks" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="embeddedsoftware_sinks">
<column name="`embeddedsoftware_sinks_id`" not-null="false" unique="false"/>
</key>
<list-index column="`embeddedsoftware_sinks_idx`"/>
<one-to-many entity-name="Sink"/>
</list>
<list name="responseTimeProbes" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="embeddedsoftware_responsetimeprobes">
<column name="`embeddedsoftware_responsetimeprobes_id`" not-null="false" unique="false"/>
</key>
<list-index column="`embeddedsoftware_responsetimeprobes_idx`"/>
<one-to-many entity-name="ResponseTimeProbe"/>
</list>
<list name="inspectionProbes" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="embeddedsoftware_inspectionprobes">
<column name="`embeddedsoftware_inspectionprobes_id`" not-null="false" unique="false"/>
</key>
<list-index column="`embeddedsoftware_inspectionprobes_idx`"/>
<one-to-many entity-name="SwInspectionProbe"/>
</list>
<list name="boundedSpectrumElements" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="embeddedsoftware_boundedspectrumelements">
<column name="`embeddedsoftware_boundedspectrumelements_id`" not-null="false" unique="false"/>
</key>
<list-index column="`embeddedsoftware_boundedspectrumelements_idx`"/>
<one-to-many entity-name="BoundedSpectrumElement"/>
</list>
</subclass>


this is the Identifiable mapping:

<class name="org.efixes.impl.IdentifiableImpl" entity-name="Identifiable" abstract="true" lazy="false" discriminator-value="Identifiable" table="`identifiable`">
<meta attribute="eclassName">Identifiable</meta>
<meta attribute="epackage">http://www.efixes.org/efixes.ecore/efixes</meta>
<id name="id" type="java.lang.String">
<column not-null="true" unique="false" name="`id`"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
<meta attribute="syntheticVersion">true</meta>
</version>
</class>


br. Bahram


Martin Taal schrieb:
> Hi Bahram,
> I think we need to dig a bit deeper.
> It fails in this statement:
> identifierType.nullSafeSet(st, id, index+1, idsettable,
> session);
> Apparently hibernate thinks that the id is a long while the value in the
> object is a string. Looking at the mapping you showed below there is no
> reason why hibernate would assume that the id is a long. So my feel is
> that this exception is for another object/efeature.
>
> Can you put a breakpoint in AnyType and check which column/efeature from
> which eclass it is trying to set in the Anytype?
> An easy way to get the sources visible in eclipse is to open the
> hibernate.jar and add the source directory of hibernate to it (so the
> jar contains both sources and classes).
>
> Then when you have found it also post the mapping of the eclass and the
> id hibernate mapping (if that is done in a super type).
>
> gr. Martin
>
> Bahram wrote:
>> Hi Martin,
>>
>> I have this problem if i try to set an Element to my Diagram. I set
>> Diagram with
>> diagram .setElement(myModel);
>> I found many Discoution about this problem but any solution.
>>
>> gr. Bahram
>>
>> Martin Taal schrieb:
>>> Hi Bahram,
>>> I am not sure if it is the ID it is failing on. Can you put a
>>> breakpoint in AnyType and check which column/efeature it is trying to
>>> set?
>>>
>>> gr. Martin
>>>
>>> Bahram Kord wrote:
>>>> Hi Martin,
>>>> Thank you. it works. but I have now following Exception.
>>>>
>>>> java.lang.ClassCastException: java.lang.String
>>>> at org.hibernate.type.LongType.set(LongType.java:42)
>>>> at
>>>> org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:136)
>>>> at
>>>> org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:107)
>>>> at org.hibernate.type.AnyType.nullSafeSet(AnyType.java:144)
>>>> at
>>>> org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1997)
>>>>
>>>> at
>>>> org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1974)
>>>>
>>>> at
>>>> org.hibernate.persister.entity.AbstractEntityPersister$3.bin dValues(AbstractEntityPersister.java:2152)
>>>>
>>>> at
>>>> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:32)
>>>>
>>>> at
>>>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
>>>>
>>>> at
>>>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
>>>>
>>>> at
>>>> org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
>>>>
>>>> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
>>>> at
>>>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
>>>>
>>>> at
>>>> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
>>>>
>>>> at
>>>> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
>>>>
>>>> at
>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
>>>>
>>>> at
>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>>>>
>>>> at
>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
>>>>
>>>> at
>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>>>>
>>>> at
>>>> org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
>>>> at
>>>> org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
>>>> at
>>>> org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :495)
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.HbSessionWrapper.saveOrUpdat e(HbSessionWrapper.java:161)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:353)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:430)
>>>>
>>>> at
>>>> org.efixes.ui.EfixesProjectCreationWizardDb.performFinish(Ef ixesProjectCreationWizardDb.java:243)
>>>>
>>>> at
>>>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>>>>
>>>>
>>>>
>>>> I have in mapping Statements following Tag about Id :
>>>>
>>>> <class name="org.efixes.impl.IdentifiableImpl"
>>>> entity-name="Identifiable" abstract="true" lazy="false"
>>>> discriminator-value="Identifiable" table="`identifiable`">
>>>> <meta attribute="eclassName">Identifiable</meta>
>>>> <meta
>>>> attribute="epackage">http://www.efixes.org/efixes.ecore/efixes</meta>
>>>> <id name="id" type="java.lang.String">
>>>> <column not-null="true" unique="false" name="`id`"/>
>>>> </id>
>>>> <discriminator column="`dtype`" type="string"/>
>>>> <version name="e_version" column="e_version"
>>>> access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
>>>>
>>>> <meta attribute="syntheticVersion">true</meta>
>>>> </version>
>>>> </class>
>>>>
>>>>
>>>> can you pls help me to solve this problem. I will not change my
>>>> Id-Type to ELong.
>>>>
>>>> Best rgards.
>>>> Bahram
>>>>
>>>>
>>>>
>>>> Martin Taal schrieb:
>>>>> Hi Bahram,
>>>>> Possibly it helps if you can upgrade to a more recent version of
>>>>> Teneo:
>>>>> see the 1.0.4 maintenance builds in the bottom of this page:
>>>>> http://www.eclipse.org/modeling/emf/downloads/?project=teneo
>>>>> or the 1.1.0 build for Eclipse 3.5
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> Bahram Kord wrote:
>>>>>> Hi,
>>>>>> I am using Teneo EMF version 1.0.1.v200809211527-....
>>>>>> best regards
>>>>>> Bahram
>>>>>>
>>>>>> Martin Taal schrieb:
>>>>>>> Hi Bahram,
>>>>>>> The line numbers in the exception trace do not seem to match with
>>>>>>> what I have. Which version are you using?
>>>>>>>
>>>>>>> gr. Martin
>>>>>>>
>>>>>>> Bahram wrote:
>>>>>>>> Hi Martin,
>>>>>>>> tanks for your message.
>>>>>>>> I mean Diagram from
>>>>>>>> org.eclipse.gmf.runtime.notation.NotationPackage. I registered
>>>>>>>> also this Package although have this Exeption.
>>>>>>>>
>>>>>>>> gr. Bahram
>>>>>>>>
>>>>>>>> Martin Taal schrieb:
>>>>>>>>> Hi Bahram,
>>>>>>>>> What is the epackage which contains Diagram? That one also
>>>>>>>>> needs to be registered.
>>>>>>>>>
>>>>>>>>> gr. Martin
>>>>>>>>>
>>>>>>>>> Bahram Kord wrote:
>>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>> I get the following Exeption if I try mapping my ECOR model.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> java.lang.IllegalArgumentException: No annotated model element
>>>>>>>>>> present for: Diagram for type EClass has its epackage been
>>>>>>>>>> registered with Teneo?
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I also registered the following Epackages with
>>>>>>>>>> dataStore.setEPackages:
>>>>>>>>>>
>>>>>>>>>> myModelPackage.eINSTANCE
>>>>>>>>>> NotationPackage.eINSTANCE
>>>>>>>>>> EcorePackage.eINSTANCE
>>>>>>>>>> XMLTypePackage.eINSTANCE
>>>>>>>>>>
>>>>>>>>>> someone has previously had problems with Diagram? Diagram is
>>>>>>>>>> an Epackage from GMF and i dont create it myslef.
>>>>>>>>>>
>>>>>>>>>> thanks a lot
>>>>>>>>>> Bahram
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>
>>>
>
>
Re: [TENEO] ID from EString [message #431074 is a reply to message #431069] Thu, 25 June 2009 17:46 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Bahram,
Hmm, okay, I did some more checking and it seems that any-types are mapped with the default idtype as long. Sorry for
not noting it earlier :-(.
Can you enter a bugzilla for this? Then I can make this option/annotation driven. Is not difficult to do (so in/after
the weekend I will do a new build).

gr. Martin

Bahram Kord wrote:
> Hi martin,
> thank you for your replay an sorry for delay of my message.
>
> I set the breakpoint at the anyType. this problem caused by setting an
> Embeddedsoftware to Diagram
>
> EmbeddedSoftware mapping :
> <subclass name="org.efixes.software.impl.EmbeddedSoftwareImpl"
> entity-name="EmbeddedSoftware" abstract="false" lazy="false"
> extends="SoftwareElement" discriminator-value="EmbeddedSoftware">
> <meta attribute="eclassName">EmbeddedSoftware</meta>
> <meta
> attribute="epackage">http://www.efixes.org/efixes.ecore/efixes/software</meta>
>
> <list name="tasks" lazy="true" cascade="all,delete-orphan">
> <key update="true" foreign-key="embeddedsoftware_tasks">
> <column name="`embeddedsoftware_tasks_id`"
> not-null="false" unique="false"/>
> </key>
> <list-index column="`embeddedsoftware_tasks_idx`"/>
> <one-to-many entity-name="Task"/>
> </list>
> <list name="softwareConnections" lazy="true"
> cascade="all,delete-orphan">
> <key update="true"
> foreign-key="embeddedsoftware_softwareconnections">
> <column name="`embeddedsoftware_softwareconnections_id`"
> not-null="false" unique="false"/>
> </key>
> <list-index
> column="`embeddedsoftware_softwareconnections_idx`"/>
> <one-to-many entity-name="SoftwareConnection"/>
> </list>
> <list name="ports" lazy="true" cascade="all,delete-orphan">
> <key update="true" foreign-key="embeddedsoftware_ports">
> <column name="`embeddedsoftware_ports_id`"
> not-null="false" unique="false"/>
> </key>
> <list-index column="`embeddedsoftware_ports_idx`"/>
> <one-to-many entity-name="Port"/>
> </list>
> <list name="sources" lazy="true" cascade="all,delete-orphan">
> <key update="true" foreign-key="embeddedsoftware_sources">
> <column name="`embeddedsoftware_sources_id`"
> not-null="false" unique="false"/>
> </key>
> <list-index column="`embeddedsoftware_sources_idx`"/>
> <one-to-many entity-name="Source"/>
> </list>
> <list name="sinks" lazy="true" cascade="all,delete-orphan">
> <key update="true" foreign-key="embeddedsoftware_sinks">
> <column name="`embeddedsoftware_sinks_id`"
> not-null="false" unique="false"/>
> </key>
> <list-index column="`embeddedsoftware_sinks_idx`"/>
> <one-to-many entity-name="Sink"/>
> </list>
> <list name="responseTimeProbes" lazy="true"
> cascade="all,delete-orphan">
> <key update="true"
> foreign-key="embeddedsoftware_responsetimeprobes">
> <column name="`embeddedsoftware_responsetimeprobes_id`"
> not-null="false" unique="false"/>
> </key>
> <list-index
> column="`embeddedsoftware_responsetimeprobes_idx`"/>
> <one-to-many entity-name="ResponseTimeProbe"/>
> </list>
> <list name="inspectionProbes" lazy="true"
> cascade="all,delete-orphan">
> <key update="true"
> foreign-key="embeddedsoftware_inspectionprobes">
> <column name="`embeddedsoftware_inspectionprobes_id`"
> not-null="false" unique="false"/>
> </key>
> <list-index column="`embeddedsoftware_inspectionprobes_idx`"/>
> <one-to-many entity-name="SwInspectionProbe"/>
> </list>
> <list name="boundedSpectrumElements" lazy="true"
> cascade="all,delete-orphan">
> <key update="true"
> foreign-key="embeddedsoftware_boundedspectrumelements">
> <column
> name="`embeddedsoftware_boundedspectrumelements_id`" not-null="false"
> unique="false"/>
> </key>
> <list-index
> column="`embeddedsoftware_boundedspectrumelements_idx`"/>
> <one-to-many entity-name="BoundedSpectrumElement"/>
> </list>
> </subclass>
>
>
> this is the Identifiable mapping:
>
> <class name="org.efixes.impl.IdentifiableImpl"
> entity-name="Identifiable" abstract="true" lazy="false"
> discriminator-value="Identifiable" table="`identifiable`">
> <meta attribute="eclassName">Identifiable</meta>
> <meta
> attribute="epackage">http://www.efixes.org/efixes.ecore/efixes</meta>
> <id name="id" type="java.lang.String">
> <column not-null="true" unique="false" name="`id`"/>
> </id>
> <discriminator column="`dtype`" type="string"/>
> <version name="e_version" column="e_version"
> access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
>
> <meta attribute="syntheticVersion">true</meta>
> </version>
> </class>
>
>
> br. Bahram
>
>
> Martin Taal schrieb:
>> Hi Bahram,
>> I think we need to dig a bit deeper.
>> It fails in this statement:
>> identifierType.nullSafeSet(st, id, index+1, idsettable,
>> session);
>> Apparently hibernate thinks that the id is a long while the value in
>> the object is a string. Looking at the mapping you showed below there
>> is no reason why hibernate would assume that the id is a long. So my
>> feel is that this exception is for another object/efeature.
>>
>> Can you put a breakpoint in AnyType and check which column/efeature
>> from which eclass it is trying to set in the Anytype?
>> An easy way to get the sources visible in eclipse is to open the
>> hibernate.jar and add the source directory of hibernate to it (so the
>> jar contains both sources and classes).
>>
>> Then when you have found it also post the mapping of the eclass and
>> the id hibernate mapping (if that is done in a super type).
>>
>> gr. Martin
>>
>> Bahram wrote:
>>> Hi Martin,
>>>
>>> I have this problem if i try to set an Element to my Diagram. I set
>>> Diagram with
>>> diagram .setElement(myModel);
>>> I found many Discoution about this problem but any solution.
>>>
>>> gr. Bahram
>>>
>>> Martin Taal schrieb:
>>>> Hi Bahram,
>>>> I am not sure if it is the ID it is failing on. Can you put a
>>>> breakpoint in AnyType and check which column/efeature it is trying
>>>> to set?
>>>>
>>>> gr. Martin
>>>>
>>>> Bahram Kord wrote:
>>>>> Hi Martin,
>>>>> Thank you. it works. but I have now following Exception.
>>>>>
>>>>> java.lang.ClassCastException: java.lang.String
>>>>> at org.hibernate.type.LongType.set(LongType.java:42)
>>>>> at
>>>>> org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:136)
>>>>> at
>>>>> org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:107)
>>>>> at org.hibernate.type.AnyType.nullSafeSet(AnyType.java:144)
>>>>> at
>>>>> org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1997)
>>>>>
>>>>> at
>>>>> org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1974)
>>>>>
>>>>> at
>>>>> org.hibernate.persister.entity.AbstractEntityPersister$3.bin dValues(AbstractEntityPersister.java:2152)
>>>>>
>>>>> at
>>>>> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:32)
>>>>>
>>>>> at
>>>>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
>>>>>
>>>>> at
>>>>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
>>>>>
>>>>> at
>>>>> org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
>>>>>
>>>>> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
>>>>> at
>>>>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
>>>>>
>>>>> at
>>>>> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
>>>>>
>>>>> at
>>>>> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
>>>>>
>>>>> at
>>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
>>>>>
>>>>> at
>>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>>>>>
>>>>> at
>>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
>>>>>
>>>>> at
>>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>>>>>
>>>>> at
>>>>> org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
>>>>> at
>>>>> org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
>>>>> at
>>>>> org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :495)
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.HbSessionWrapper.saveOrUpdat e(HbSessionWrapper.java:161)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:353)
>>>>>
>>>>> at
>>>>> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:430)
>>>>>
>>>>> at
>>>>> org.efixes.ui.EfixesProjectCreationWizardDb.performFinish(Ef ixesProjectCreationWizardDb.java:243)
>>>>>
>>>>> at
>>>>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>>>>>
>>>>>
>>>>>
>>>>> I have in mapping Statements following Tag about Id :
>>>>>
>>>>> <class name="org.efixes.impl.IdentifiableImpl"
>>>>> entity-name="Identifiable" abstract="true" lazy="false"
>>>>> discriminator-value="Identifiable" table="`identifiable`">
>>>>> <meta attribute="eclassName">Identifiable</meta>
>>>>> <meta
>>>>> attribute="epackage">http://www.efixes.org/efixes.ecore/efixes</meta>
>>>>> <id name="id" type="java.lang.String">
>>>>> <column not-null="true" unique="false" name="`id`"/>
>>>>> </id>
>>>>> <discriminator column="`dtype`" type="string"/>
>>>>> <version name="e_version" column="e_version"
>>>>> access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
>>>>>
>>>>> <meta attribute="syntheticVersion">true</meta>
>>>>> </version>
>>>>> </class>
>>>>>
>>>>>
>>>>> can you pls help me to solve this problem. I will not change my
>>>>> Id-Type to ELong.
>>>>>
>>>>> Best rgards.
>>>>> Bahram
>>>>>
>>>>>
>>>>>
>>>>> Martin Taal schrieb:
>>>>>> Hi Bahram,
>>>>>> Possibly it helps if you can upgrade to a more recent version of
>>>>>> Teneo:
>>>>>> see the 1.0.4 maintenance builds in the bottom of this page:
>>>>>> http://www.eclipse.org/modeling/emf/downloads/?project=teneo
>>>>>> or the 1.1.0 build for Eclipse 3.5
>>>>>>
>>>>>> gr. Martin
>>>>>>
>>>>>> Bahram Kord wrote:
>>>>>>> Hi,
>>>>>>> I am using Teneo EMF version 1.0.1.v200809211527-....
>>>>>>> best regards
>>>>>>> Bahram
>>>>>>>
>>>>>>> Martin Taal schrieb:
>>>>>>>> Hi Bahram,
>>>>>>>> The line numbers in the exception trace do not seem to match
>>>>>>>> with what I have. Which version are you using?
>>>>>>>>
>>>>>>>> gr. Martin
>>>>>>>>
>>>>>>>> Bahram wrote:
>>>>>>>>> Hi Martin,
>>>>>>>>> tanks for your message.
>>>>>>>>> I mean Diagram from
>>>>>>>>> org.eclipse.gmf.runtime.notation.NotationPackage. I
>>>>>>>>> registered also this Package although have this Exeption.
>>>>>>>>>
>>>>>>>>> gr. Bahram
>>>>>>>>>
>>>>>>>>> Martin Taal schrieb:
>>>>>>>>>> Hi Bahram,
>>>>>>>>>> What is the epackage which contains Diagram? That one also
>>>>>>>>>> needs to be registered.
>>>>>>>>>>
>>>>>>>>>> gr. Martin
>>>>>>>>>>
>>>>>>>>>> Bahram Kord wrote:
>>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>> I get the following Exeption if I try mapping my ECOR model.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> java.lang.IllegalArgumentException: No annotated model
>>>>>>>>>>> element present for: Diagram for type EClass has its epackage
>>>>>>>>>>> been registered with Teneo?
>>>>>>>>>>> at
>>>>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>>>>>>>>>>
>>>>>>>>>>> at
>>>>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>>>>>>>>>>
>>>>>>>>>>> at
>>>>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>>>>>>>>>>
>>>>>>>>>>> at
>>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>>>>>>>>>>
>>>>>>>>>>> at
>>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>>>>>>>>>>
>>>>>>>>>>> at
>>>>>>>>>>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>>>>>>>>>>
>>>>>>>>>>> at
>>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>>>>>>>>>>
>>>>>>>>>>> at
>>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>>>>>>>>>>
>>>>>>>>>>> at
>>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>>>>>>>>>>
>>>>>>>>>>> at
>>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>>>>>>>>>>
>>>>>>>>>>> at
>>>>>>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>>>>>>>>>>
>>>>>>>>>>> at
>>>>>>>>>>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I also registered the following Epackages with
>>>>>>>>>>> dataStore.setEPackages:
>>>>>>>>>>>
>>>>>>>>>>> myModelPackage.eINSTANCE
>>>>>>>>>>> NotationPackage.eINSTANCE
>>>>>>>>>>> EcorePackage.eINSTANCE
>>>>>>>>>>> XMLTypePackage.eINSTANCE
>>>>>>>>>>>
>>>>>>>>>>> someone has previously had problems with Diagram? Diagram is
>>>>>>>>>>> an Epackage from GMF and i dont create it myslef.
>>>>>>>>>>>
>>>>>>>>>>> thanks a lot
>>>>>>>>>>> Bahram
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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] ID from EString [message #431099 is a reply to message #431074] Fri, 26 June 2009 19:59 Go to previous message
Eclipse UserFriend
Originally posted by: krdbrm.gmail.com

hi martin,
i entered a bugzilla whit for that with ID 281705.
br bahram
Martin Taal schrieb:
> Hi Bahram,
> Hmm, okay, I did some more checking and it seems that any-types are
> mapped with the default idtype as long. Sorry for not noting it earlier
> :-(.
> Can you enter a bugzilla for this? Then I can make this
> option/annotation driven. Is not difficult to do (so in/after the
> weekend I will do a new build).
>
> gr. Martin
>
> Bahram Kord wrote:
>> Hi martin,
>> thank you for your replay an sorry for delay of my message.
>>
>> I set the breakpoint at the anyType. this problem caused by setting an
>> Embeddedsoftware to Diagram
>>
>> EmbeddedSoftware mapping :
>> <subclass name="org.efixes.software.impl.EmbeddedSoftwareImpl"
>> entity-name="EmbeddedSoftware" abstract="false" lazy="false"
>> extends="SoftwareElement" discriminator-value="EmbeddedSoftware">
>> <meta attribute="eclassName">EmbeddedSoftware</meta>
>> <meta
>> attribute="epackage">http://www.efixes.org/efixes.ecore/efixes/software</meta>
>>
>> <list name="tasks" lazy="true" cascade="all,delete-orphan">
>> <key update="true" foreign-key="embeddedsoftware_tasks">
>> <column name="`embeddedsoftware_tasks_id`"
>> not-null="false" unique="false"/>
>> </key>
>> <list-index column="`embeddedsoftware_tasks_idx`"/>
>> <one-to-many entity-name="Task"/>
>> </list>
>> <list name="softwareConnections" lazy="true"
>> cascade="all,delete-orphan">
>> <key update="true"
>> foreign-key="embeddedsoftware_softwareconnections">
>> <column
>> name="`embeddedsoftware_softwareconnections_id`" not-null="false"
>> unique="false"/>
>> </key>
>> <list-index
>> column="`embeddedsoftware_softwareconnections_idx`"/>
>> <one-to-many entity-name="SoftwareConnection"/>
>> </list>
>> <list name="ports" lazy="true" cascade="all,delete-orphan">
>> <key update="true" foreign-key="embeddedsoftware_ports">
>> <column name="`embeddedsoftware_ports_id`"
>> not-null="false" unique="false"/>
>> </key>
>> <list-index column="`embeddedsoftware_ports_idx`"/>
>> <one-to-many entity-name="Port"/>
>> </list>
>> <list name="sources" lazy="true" cascade="all,delete-orphan">
>> <key update="true" foreign-key="embeddedsoftware_sources">
>> <column name="`embeddedsoftware_sources_id`"
>> not-null="false" unique="false"/>
>> </key>
>> <list-index column="`embeddedsoftware_sources_idx`"/>
>> <one-to-many entity-name="Source"/>
>> </list>
>> <list name="sinks" lazy="true" cascade="all,delete-orphan">
>> <key update="true" foreign-key="embeddedsoftware_sinks">
>> <column name="`embeddedsoftware_sinks_id`"
>> not-null="false" unique="false"/>
>> </key>
>> <list-index column="`embeddedsoftware_sinks_idx`"/>
>> <one-to-many entity-name="Sink"/>
>> </list>
>> <list name="responseTimeProbes" lazy="true"
>> cascade="all,delete-orphan">
>> <key update="true"
>> foreign-key="embeddedsoftware_responsetimeprobes">
>> <column
>> name="`embeddedsoftware_responsetimeprobes_id`" not-null="false"
>> unique="false"/>
>> </key>
>> <list-index
>> column="`embeddedsoftware_responsetimeprobes_idx`"/>
>> <one-to-many entity-name="ResponseTimeProbe"/>
>> </list>
>> <list name="inspectionProbes" lazy="true"
>> cascade="all,delete-orphan">
>> <key update="true"
>> foreign-key="embeddedsoftware_inspectionprobes">
>> <column name="`embeddedsoftware_inspectionprobes_id`"
>> not-null="false" unique="false"/>
>> </key>
>> <list-index
>> column="`embeddedsoftware_inspectionprobes_idx`"/>
>> <one-to-many entity-name="SwInspectionProbe"/>
>> </list>
>> <list name="boundedSpectrumElements" lazy="true"
>> cascade="all,delete-orphan">
>> <key update="true"
>> foreign-key="embeddedsoftware_boundedspectrumelements">
>> <column
>> name="`embeddedsoftware_boundedspectrumelements_id`" not-null="false"
>> unique="false"/>
>> </key>
>> <list-index
>> column="`embeddedsoftware_boundedspectrumelements_idx`"/>
>> <one-to-many entity-name="BoundedSpectrumElement"/>
>> </list>
>> </subclass>
>>
>>
>> this is the Identifiable mapping:
>>
>> <class name="org.efixes.impl.IdentifiableImpl"
>> entity-name="Identifiable" abstract="true" lazy="false"
>> discriminator-value="Identifiable" table="`identifiable`">
>> <meta attribute="eclassName">Identifiable</meta>
>> <meta
>> attribute="epackage">http://www.efixes.org/efixes.ecore/efixes</meta>
>> <id name="id" type="java.lang.String">
>> <column not-null="true" unique="false" name="`id`"/>
>> </id>
>> <discriminator column="`dtype`" type="string"/>
>> <version name="e_version" column="e_version"
>> access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
>>
>> <meta attribute="syntheticVersion">true</meta>
>> </version>
>> </class>
>>
>>
>> br. Bahram
>>
>>
>> Martin Taal schrieb:
>>> Hi Bahram,
>>> I think we need to dig a bit deeper.
>>> It fails in this statement:
>>> identifierType.nullSafeSet(st, id, index+1, idsettable,
>>> session);
>>> Apparently hibernate thinks that the id is a long while the value in
>>> the object is a string. Looking at the mapping you showed below there
>>> is no reason why hibernate would assume that the id is a long. So my
>>> feel is that this exception is for another object/efeature.
>>>
>>> Can you put a breakpoint in AnyType and check which column/efeature
>>> from which eclass it is trying to set in the Anytype?
>>> An easy way to get the sources visible in eclipse is to open the
>>> hibernate.jar and add the source directory of hibernate to it (so the
>>> jar contains both sources and classes).
>>>
>>> Then when you have found it also post the mapping of the eclass and
>>> the id hibernate mapping (if that is done in a super type).
>>>
>>> gr. Martin
>>>
>>> Bahram wrote:
>>>> Hi Martin,
>>>>
>>>> I have this problem if i try to set an Element to my Diagram. I set
>>>> Diagram with
>>>> diagram .setElement(myModel);
>>>> I found many Discoution about this problem but any solution.
>>>>
>>>> gr. Bahram
>>>>
>>>> Martin Taal schrieb:
>>>>> Hi Bahram,
>>>>> I am not sure if it is the ID it is failing on. Can you put a
>>>>> breakpoint in AnyType and check which column/efeature it is trying
>>>>> to set?
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> Bahram Kord wrote:
>>>>>> Hi Martin,
>>>>>> Thank you. it works. but I have now following Exception.
>>>>>>
>>>>>> java.lang.ClassCastException: java.lang.String
>>>>>> at org.hibernate.type.LongType.set(LongType.java:42)
>>>>>> at
>>>>>> org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:136)
>>>>>> at
>>>>>> org.hibernate.type.NullableType.nullSafeSet(NullableType.jav a:107)
>>>>>> at org.hibernate.type.AnyType.nullSafeSet(AnyType.java:144)
>>>>>> at
>>>>>> org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1997)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.persister.entity.AbstractEntityPersister.dehyd rate(AbstractEntityPersister.java:1974)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.persister.entity.AbstractEntityPersister$3.bin dValues(AbstractEntityPersister.java:2152)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:32)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
>>>>>>
>>>>>> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
>>>>>> at
>>>>>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>>>>>>
>>>>>> at
>>>>>> org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
>>>>>> at
>>>>>> org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
>>>>>> at
>>>>>> org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :495)
>>>>>> at
>>>>>> org.eclipse.emf.teneo.hibernate.HbSessionWrapper.saveOrUpdat e(HbSessionWrapper.java:161)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:353)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:430)
>>>>>>
>>>>>> at
>>>>>> org.efixes.ui.EfixesProjectCreationWizardDb.performFinish(Ef ixesProjectCreationWizardDb.java:243)
>>>>>>
>>>>>> at
>>>>>> org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDi alog.java:742)
>>>>>>
>>>>>>
>>>>>>
>>>>>> I have in mapping Statements following Tag about Id :
>>>>>>
>>>>>> <class name="org.efixes.impl.IdentifiableImpl"
>>>>>> entity-name="Identifiable" abstract="true" lazy="false"
>>>>>> discriminator-value="Identifiable" table="`identifiable`">
>>>>>> <meta attribute="eclassName">Identifiable</meta>
>>>>>> <meta
>>>>>> attribute="epackage">http://www.efixes.org/efixes.ecore/efixes</meta>
>>>>>> <id name="id" type="java.lang.String">
>>>>>> <column not-null="true" unique="false" name="`id`"/>
>>>>>> </id>
>>>>>> <discriminator column="`dtype`" type="string"/>
>>>>>> <version name="e_version" column="e_version"
>>>>>> access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
>>>>>>
>>>>>> <meta attribute="syntheticVersion">true</meta>
>>>>>> </version>
>>>>>> </class>
>>>>>>
>>>>>>
>>>>>> can you pls help me to solve this problem. I will not change my
>>>>>> Id-Type to ELong.
>>>>>>
>>>>>> Best rgards.
>>>>>> Bahram
>>>>>>
>>>>>>
>>>>>>
>>>>>> Martin Taal schrieb:
>>>>>>> Hi Bahram,
>>>>>>> Possibly it helps if you can upgrade to a more recent version of
>>>>>>> Teneo:
>>>>>>> see the 1.0.4 maintenance builds in the bottom of this page:
>>>>>>> http://www.eclipse.org/modeling/emf/downloads/?project=teneo
>>>>>>> or the 1.1.0 build for Eclipse 3.5
>>>>>>>
>>>>>>> gr. Martin
>>>>>>>
>>>>>>> Bahram Kord wrote:
>>>>>>>> Hi,
>>>>>>>> I am using Teneo EMF version 1.0.1.v200809211527-....
>>>>>>>> best regards
>>>>>>>> Bahram
>>>>>>>>
>>>>>>>> Martin Taal schrieb:
>>>>>>>>> Hi Bahram,
>>>>>>>>> The line numbers in the exception trace do not seem to match
>>>>>>>>> with what I have. Which version are you using?
>>>>>>>>>
>>>>>>>>> gr. Martin
>>>>>>>>>
>>>>>>>>> Bahram wrote:
>>>>>>>>>> Hi Martin,
>>>>>>>>>> tanks for your message.
>>>>>>>>>> I mean Diagram from
>>>>>>>>>> org.eclipse.gmf.runtime.notation.NotationPackage. I
>>>>>>>>>> registered also this Package although have this Exeption.
>>>>>>>>>>
>>>>>>>>>> gr. Bahram
>>>>>>>>>>
>>>>>>>>>> Martin Taal schrieb:
>>>>>>>>>>> Hi Bahram,
>>>>>>>>>>> What is the epackage which contains Diagram? That one also
>>>>>>>>>>> needs to be registered.
>>>>>>>>>>>
>>>>>>>>>>> gr. Martin
>>>>>>>>>>>
>>>>>>>>>>> Bahram Kord wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>> I get the following Exeption if I try mapping my ECOR model.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> java.lang.IllegalArgumentException: No annotated model
>>>>>>>>>>>> element present for: Diagram for type EClass has its
>>>>>>>>>>>> epackage been registered with Teneo?
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:346)
>>>>>>>>>>>>
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:288)
>>>>>>>>>>>>
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedERe ferenceImpl.getAReferenceType(PAnnotatedEReferenceImpl.java: 158)
>>>>>>>>>>>>
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.EFeatureAnnotator.a nnotate(EFeatureAnnotator.java:99)
>>>>>>>>>>>>
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:242)
>>>>>>>>>>>>
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:55)
>>>>>>>>>>>>
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:167)
>>>>>>>>>>>>
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:135)
>>>>>>>>>>>>
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:146)
>>>>>>>>>>>>
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:67)
>>>>>>>>>>>>
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java:624)
>>>>>>>>>>>>
>>>>>>>>>>>> at
>>>>>>>>>>>> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:155)
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> I also registered the following Epackages with
>>>>>>>>>>>> dataStore.setEPackages:
>>>>>>>>>>>>
>>>>>>>>>>>> myModelPackage.eINSTANCE
>>>>>>>>>>>> NotationPackage.eINSTANCE
>>>>>>>>>>>> EcorePackage.eINSTANCE
>>>>>>>>>>>> XMLTypePackage.eINSTANCE
>>>>>>>>>>>>
>>>>>>>>>>>> someone has previously had problems with Diagram? Diagram is
>>>>>>>>>>>> an Epackage from GMF and i dont create it myslef.
>>>>>>>>>>>>
>>>>>>>>>>>> thanks a lot
>>>>>>>>>>>> Bahram
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>
>>>
>
>
Previous Topic:[QUERY] Does EMF Query run in Standalone mode?
Next Topic:The definitive truth about multiple inheritance
Goto Forum:
  


Current Time: Sun Dec 15 00:19:30 GMT 2019

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

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

Back to the top