Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Not-null property references a null value
[Teneo] Not-null property references a null value [message #91822] Wed, 25 July 2007 21:46 Go to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 253
Registered: July 2009
Senior Member
I have created a new EMF model and have been populating it, saving it
and validating it as XMI.

I now added code to use Teneo and I get the following error:
org.hibernate.PropertyValueException: not-null property references a
null or transient value: StToken.tokenSource
at org.hibernate.engine.Nullability.checkNullability(Nullabilit y.java:72)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:290)
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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
at org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
at
org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
at org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
at
org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
at org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
at
org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
at
org.hibernate.event.def.AbstractSaveEventListener.cascadeBef oreSave(AbstractSaveEventListener.java:431)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:265)
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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
at
org.hibernate.event.def.AbstractSaveEventListener.cascadeBef oreSave(AbstractSaveEventListener.java:431)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:265)
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.DefaultSaveEventListener.saveWithGen eratedOrRequestedId(DefaultSaveEventListener.java:33)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
at
org.hibernate.event.def.DefaultSaveEventListener.performSave OrUpdate(DefaultSaveEventListener.java:27)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535 )
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
at
com.castortech.common.visitors.BaseSTMTreeCopier.save(BaseST MTreeCopier.java:224)

It is telling me that the Tokensource is null. I put a breakpoint at the
source of the error and looking at the culprit record it appears at that
point to be null, but when looking at the EMF objects it is not. Here is
the XMI output of it (look for "<==here"):

<rootInterpreter mainTokenSource="//@sources.0"
interpreterId="CobolInterpreter">
<root concreteId="CompilationUnit">
<children xsi:type="STM_MetaModel:StConcreteNode"
concreteId="ProgramUnit">
<children xsi:type="STM_MetaModel:StConcreteNode"
concreteId="IdentificationDivision">
<children xsi:type="STM_MetaModel:StToken"
image="IDENTIFICATION" kind="264" tokenSource="//@sources.0"> <==here
<coordinate length="14" type="Token"/>
</children>

I can surely pull some more stuff, please just let me know what would be
needed to figure this one out.

Thanks
Alain Picard
Re: [Teneo] Not-null property references a null value [message #91858 is a reply to message #91822] Thu, 26 July 2007 05:36 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Yes I would need a small testcase to reproduce this.

gr. Martin

Alain Picard wrote:
> I have created a new EMF model and have been populating it, saving it
> and validating it as XMI.
>
> I now added code to use Teneo and I get the following error:
> org.hibernate.PropertyValueException: not-null property references a
> null or transient value: StToken.tokenSource
> at
> org.hibernate.engine.Nullability.checkNullability(Nullabilit y.java:72)
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:290)
>
> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at
> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
>
> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at
> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
>
> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at
> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
>
> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeBef oreSave(AbstractSaveEventListener.java:431)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:265)
>
> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeBef oreSave(AbstractSaveEventListener.java:431)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:265)
>
> 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.DefaultSaveEventListener.saveWithGen eratedOrRequestedId(DefaultSaveEventListener.java:33)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>
> at
> org.hibernate.event.def.DefaultSaveEventListener.performSave OrUpdate(DefaultSaveEventListener.java:27)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>
> at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535 )
> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
> at
> com.castortech.common.visitors.BaseSTMTreeCopier.save(BaseST MTreeCopier.java:224)
>
>
> It is telling me that the Tokensource is null. I put a breakpoint at the
> source of the error and looking at the culprit record it appears at that
> point to be null, but when looking at the EMF objects it is not. Here is
> the XMI output of it (look for "<==here"):
>
> <rootInterpreter mainTokenSource="//@sources.0"
> interpreterId="CobolInterpreter">
> <root concreteId="CompilationUnit">
> <children xsi:type="STM_MetaModel:StConcreteNode"
> concreteId="ProgramUnit">
> <children xsi:type="STM_MetaModel:StConcreteNode"
> concreteId="IdentificationDivision">
> <children xsi:type="STM_MetaModel:StToken"
> image="IDENTIFICATION" kind="264" tokenSource="//@sources.0"> <==here
> <coordinate length="14" type="Token"/>
> </children>
>
> I can surely pull some more stuff, please just let me know what would be
> needed to figure this one out.
>
> Thanks
> Alain Picard


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Not-null property references a null value [message #91967 is a reply to message #91858] Thu, 26 July 2007 17:48 Go to previous messageGo to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 253
Registered: July 2009
Senior Member
Martin,

I have tried to put together a test case and I now get an error generating the mapping:
Exception in thread "main" org.hibernate.MappingException: Cannot use identity column key generation with <union-subclass> mapping
for: StToken
at org.hibernate.persister.entity.UnionSubclassEntityPersister. <init>(UnionSubclassEntityPersister.java:67)
at org.hibernate.persister.PersisterFactory.createClassPersiste r(PersisterFactory.java:61)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1294)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:170)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:87)
at test.TestSTM.main(TestSTM.java:49)

I did get that once yesterday and did a search and thought it was related to a duplicate naming issue. Changed that and then that
went fine. But not today.

I am enclosing the zip of the small project, except for the auto-generated stuff (no manual changes done here yet).

There is also the TestSTM program which was intended to reproduced and demonstrate the initial issue.

Thanks for your help and insight here.

Alain


Martin Taal wrote:
> Yes I would need a small testcase to reproduce this.
>
> gr. Martin
>
> Alain Picard wrote:
>> I have created a new EMF model and have been populating it, saving it
>> and validating it as XMI.
>>
>> I now added code to use Teneo and I get the following error:
>> org.hibernate.PropertyValueException: not-null property references a
>> null or transient value: StToken.tokenSource
>> at
>> org.hibernate.engine.Nullability.checkNullability(Nullabilit y.java:72)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:290)
>>
>> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
>> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at
>> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
>> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
>>
>> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
>> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at
>> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
>> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
>>
>> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
>> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at
>> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
>> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
>>
>> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
>> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.cascadeBef oreSave(AbstractSaveEventListener.java:431)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:265)
>>
>> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
>> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.cascadeBef oreSave(AbstractSaveEventListener.java:431)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:265)
>>
>> 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.DefaultSaveEventListener.saveWithGen eratedOrRequestedId(DefaultSaveEventListener.java:33)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>>
>> at
>> org.hibernate.event.def.DefaultSaveEventListener.performSave OrUpdate(DefaultSaveEventListener.java:27)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>>
>> at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535 )
>> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
>> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
>> at
>> com.castortech.common.visitors.BaseSTMTreeCopier.save(BaseST MTreeCopier.java:224)
>>
>>
>> It is telling me that the Tokensource is null. I put a breakpoint at
>> the source of the error and looking at the culprit record it appears
>> at that point to be null, but when looking at the EMF objects it is
>> not. Here is the XMI output of it (look for "<==here"):
>>
>> <rootInterpreter mainTokenSource="//@sources.0"
>> interpreterId="CobolInterpreter">
>> <root concreteId="CompilationUnit">
>> <children xsi:type="STM_MetaModel:StConcreteNode"
>> concreteId="ProgramUnit">
>> <children xsi:type="STM_MetaModel:StConcreteNode"
>> concreteId="IdentificationDivision">
>> <children xsi:type="STM_MetaModel:StToken"
>> image="IDENTIFICATION" kind="264" tokenSource="//@sources.0"> <==here
>> <coordinate length="14" type="Token"/>
>> </children>
>>
>> I can surely pull some more stuff, please just let me know what would
>> be needed to figure this one out.
>>
>> Thanks
>> Alain Picard
>
>
Re: [Teneo] Not-null property references a null value [message #91985 is a reply to message #91858] Thu, 26 July 2007 17:49 Go to previous messageGo to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 253
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090407000705010405040502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Oops, here is the attachment

Alain

--------------090407000705010405040502
Content-Type: application/x-zip-compressed;
name="STM.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="STM.zip"

UEsDBBQAAAAIAAlr+jbTnzGV9wAAAP0BAAAOAAAAU1RNLy5jbGFzc3BhdGid kUFLw0AQhc8K
/oew9+7ai3hILFUitGiVJBU8lc3ukKyus3F2t7T/3mgbLFI89DZv+N7jDZNO Nh82WQN54zBj
Y37JEkDltMEmY8vqfnTNJjcX56my0vtOhrYXZ78KMNA2eTeoM+ZJseR7uRvF MRI2naMAPR0o
Ats7rakHJwQljlt3qHI4oI4aDsqazgN/04FbGVG1fXE+L/LV3dOims4WeSH+ cgYDEErLNdSx
4dHsnUC8DBK1JP3yWG07EHO5lmU+GvOrEyp1GrhyBJzgMxoC/WxjY9CfeN2y zIvVw+y2mBav
omxlH/hfkouhi2EIqw3+wKk4/OMXUEsDBBQAAAAIAHuI9zYKeu5K5AAAAJgC AAAMAAAAU1RN
Ly5wcm9qZWN0vZLNasMwEITPCeQdjO+V2lsPigNt6c0lYOcBVGnjylg/SLLJ 41eS5RYTAj2U
3GZGO3zLInK4yKGYwDqh1b58Qo9lAYppLlS3L0/t+8Nzeah2W2Ks7oH5N3DM CuPDdEg3RFEJ
VdPWBCcVI6alBOUrghcV09x3yeCV+xzFwBsDLLpsX0OVKp6STNG2Q8AGYRyg nnvEtA2CTjQV
wP6uEBrUdmNku+zxOiD4ivInruGAaqrEGZx/uS+2YV8g6b9Ac7KcPPD8aCFP z+b2tef3uECa
u9WJKx+HsRPq46qw6Ej8+Qvrn/UNUEsDBAoAAAAAAAaQ9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c1BLAQIUABQAAAAIAFlG+TZtqMNpaQAAAJEAAAAOAAAAAAAAAAEAIAAAACEm AABTVE0vcGx1
Z2luLnhtbFBLAQIUAAoAAAAAAA5L+jYAAAAAAAAAAAAAAAAIAAAAAAAAAAAA EAAAALYmAABT
VE0vc3JjL1BLAQIUABQAAAAIABRd+jYRikOQhgAAAO8AAAAcAAAAAAAAAAEA IAAAANwmAABT
VE0vc3JjL2hpYmVybmF0ZS5wcm9wZXJ0aWVzUEsBAhQACgAAAAAA4Gn5NgAA AAAAAAAAAAAA
ABYAAAAAAAAAAAAQAAAAnCcAAFNUTS9zcmMvU1RNX01ldGFNb2RlbC9QSwEC FAAKAAAAAADg
afk2AAAAAAAAAAAAAAAAGwAAAAAAAAAAABAAAADQJwAAU1RNL3NyYy9TVE1f TWV0YU1vZGVs
L2ltcGwvUEsBAhQACgAAAAAA12P4NgAAAAAAAAAAAAAAABsAAAAAAAAAAAAQ AAAACSgAAFNU
TS9zcmMvU1RNX01ldGFNb2RlbC91dGlsL1BLAQIUAAoAAAAAAA5L+jbllMuO KQAAACkAAAAk
AAAAAAAAAAEAIQAAAEIoAABTVE0vc3JjL3RlbmVvLXBlcnNpc3RlbmNlLnBy b3BlcnRpZXNQ
SwECFAAKAAAAAABmSPo2AAAAAAAAAAAAAAAADQAAAAAAAAAAABAAAACtKAAA U1RNL3NyYy90
ZXN0L1BLAQIUABQAAAAIABxW+jbvAa6JLQUAABkOAAAZAAAAAAAAAAEAIAAA ANgoAABTVE0v
c3JjL3Rlc3QvVGVzdFNUTS5qYXZhUEsBAhQACgAAAAAAAGv6NgAAAAAAAAAA AAAAAAQAAAAA
AAAAAAAQAAAAPC4AAFNUTS9QSwUGAAAAAB4AHgCzBwAAXi4AAAAA
--------------090407000705010405040502--
Re: [Teneo] Not-null property references a null value [message #92031 is a reply to message #91985] Mon, 30 July 2007 11:35 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090407090607000900090503
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Alain,
The following happens. The StTokenImpl has a many-to-one reference to the StTokenSourceImpl. Before
saving the StTokenImpl it nullifies the reference to the StTokenSourceImpl because StTokenSourceImpl
is not yet saved in the db (this nullifying does not occur in the object but in a separate array of
values kept by hibernate).
This can be repaired by first saving StTokenSourceImpl or by setting a cascade annotation on the
ereference (I tried the last and it seemed to work, see the attached ecore).

gr. Martin

Alain Picard wrote:
> Oops, here is the attachment
>
> Alain


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org

--------------090407090607000900090503
Content-Type: text/xml;
name="STM.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="STM.ecore"

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="STM_MetaModel"
nsURI="http://com.castortech.stm" nsPrefix="STM_MetaModel">
<eClassifiers xsi:type="ecore:EClass" name="StTreeRoot">
<eStructuralFeatures xsi:type="ecore:EReference" name="sources" lowerBound="1"
upperBound="-1" eType="#//StTokenSource" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="rootInterpreter" lowerBound="1"
eType="#//StInterpretationContext" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StInterpretationContext">
<eStructuralFeatures xsi:type="ecore:EReference" name="mainTokenSource" lowerBound="1"
eType="#//StTokenSource"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="root" lowerBound="1" eType="#//StRootNode"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="interpreterId" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StRootNode" eSuperTypes="#//StConcreteNode"/>
<eClassifiers xsi:type="ecore:EClass" name="StBaseNode">
<eStructuralFeatures xsi:type="ecore:EReference" name="parent" eType="#//StBaseNode"
eOpposite="#//StBaseNode/children"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
eType="#//StBaseNode" containment="true" eOpposite="#//StBaseNode/parent"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="nodeSources" upperBound="-1"
eType="#//StTokenSource"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StToken" eSuperTypes="#//StBaseNode">
<eStructuralFeatures xsi:type="ecore:EReference" name="coordinate" eType="#//StCoordinate"
containment="true" eOpposite="#//StCoordinate/owner"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="tokenType" lowerBound="1"
eType="#//StTokenType"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="image" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="originalNode" eType="#//StBaseNode"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="tokenSource" lowerBound="1"
eType="#//StTokenSource">
<eAnnotations source="teneo.jpa">
<details key="value" value="@ManyToOne(cascade={PERSIST})"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="formattingType" lowerBound="1"
eType="#//StFormattingType"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="nonRegulars" upperBound="-1"
eType="#//StNonRegular" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="StTokenType">
<eLiterals name="Regular"/>
<eLiterals name="Special" value="1"/>
<eLiterals name="EOF" value="2"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StCoordinate">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="offset" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="length" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//StToken"
eOpposite="#//StToken/coordinate"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StTokenSource">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="uriString" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="tabSize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="StFormattingType">
<eLiterals name="None"/>
<eLiterals name="IndentOnly" value="1"/>
<eLiterals name="FormatBefore" value="2"/>
<eLiterals name="FormatAfter" value="3" literal=""/>
<eLiterals name="Full" value="4"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StNonRegular">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nonRegularType" lowerBound="1"
eType="#//StNonRegularType"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="special" eType="#//StToken"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="freeNode" eType="#//StInterpretationContext"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="StNonRegularType">
<eLiterals name="Special"/>
<eLiterals name="FreeNode" value="1"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StConcreteNode" eSuperTypes="#//StBaseNode">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="concreteId" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
</ecore:EPackage>

--------------090407090607000900090503--
Re: [Teneo] Not-null property references a null value [message #92077 is a reply to message #92031] Tue, 31 July 2007 00:49 Go to previous messageGo to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 253
Registered: July 2009
Senior Member
Martin,

After not being able to generate the mapping and constantly getting the error mentioned earlier, I decided to switch to use a joined
strategy.

Well, I can now successfully save a model instance to the database.

That being said, I am just facing more issues.

First, off if you look at the ecore that I submitted, some columns are of type EEnums. When looking at the database, those enums are
not mapped as table. Looking at previous post, and at bug 182825 and at the default for enumerated columns being ordinal (9.1.21)
then how do I get the extra tables generated and the ordinal values saved instead of the text value in a standard varchar column.

2nd, I am trying to find the best and most efficient way to "initialize" the HbDataStore.

I have tried to set the USE_MAPPING_FILE property, only to get exception "org.hibernate.hql.ast.QuerySyntaxException: StTreeRoot is
not mapped, etc. I found a post of March 27 covering this issue, but here is what I get in my log:
DEBUG [30 Jul 2007 19:43] HbSessionDataStore.java: 156 : Searching hbm files in class paths of epackages
DEBUG [30 Jul 2007 19:43] StoreUtil.java: 514 : >>>> Building or descriptor file List
DEBUG [30 Jul 2007 19:43] StoreUtil.java: 528 : Try path: ;hibernate.hbm.xml
and then it moves on. I have tried to put the hibernate.hbm.xml file in the classpath (beside log4j.properties), at the root, in the
package directory. When comparing with the above mentioned post, I don't see any other try path listed or !found anywhere. Any clue?

Next, I have set the UPDATE_SCHEMA to false, to try to speed up the initialization (once the schema is stable, I believe that should
be the standard way to go). Anyway, I now get the following after executing a query:
org.hibernate.exception.SQLGrammarException: could not load an entity: [StInterpretationContext#1]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1874)
at org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:48)
at org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:42)
at org.hibernate.persister.entity.AbstractEntityPersister.load( AbstractEntityPersister.java:3042)
at org.hibernate.event.def.DefaultLoadEventListener.loadFromDat asource(DefaultLoadEventListener.java:395)
at org.hibernate.event.def.DefaultLoadEventListener.doLoad(Defa ultLoadEventListener.java:375)
at org.hibernate.event.def.DefaultLoadEventListener.load(Defaul tLoadEventListener.java:139)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad (DefaultLoadEventListener.java:179)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(Defa ultLoadEventListener.java:103)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878 )
at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java :846)
at org.hibernate.type.EntityType.resolveIdentifier(EntityType.j ava:557)
at org.hibernate.type.EntityType.resolve(EntityType.java:379)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:116)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:854)
at org.hibernate.loader.Loader.doQuery(Loader.java:729)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2220)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 78)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at test.TestSTM.main(TestSTM.java:100)
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'strootnode2_.concreteid' in 'field list'
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936 )
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedSta tement.java:1268)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatem ent.java:1403)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc her.java:186)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
at org.hibernate.loader.Loader.doQuery(Loader.java:674)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
... 25 more
this does not occur if the option is not specified. Any idea why this is happening?

At last, what would be your most efficient "initialization" routine for HbDataStore. Do you need to set EPackage every time? etc.

Thanks again for all your help. We're slowly but surely getting there.

Alain


Martin Taal wrote:
> Hi Alain,
> The following happens. The StTokenImpl has a many-to-one reference to
> the StTokenSourceImpl. Before saving the StTokenImpl it nullifies the
> reference to the StTokenSourceImpl because StTokenSourceImpl is not yet
> saved in the db (this nullifying does not occur in the object but in a
> separate array of values kept by hibernate).
> This can be repaired by first saving StTokenSourceImpl or by setting a
> cascade annotation on the ereference (I tried the last and it seemed to
> work, see the attached ecore).
>
> gr. Martin
>
> Alain Picard wrote:
>> Oops, here is the attachment
>>
>> Alain
>
>
>
> ------------------------------------------------------------ ------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="STM_MetaModel"
> nsURI="http://com.castortech.stm" nsPrefix="STM_MetaModel">
> <eClassifiers xsi:type="ecore:EClass" name="StTreeRoot">
> <eStructuralFeatures xsi:type="ecore:EReference" name="sources" lowerBound="1"
> upperBound="-1" eType="#//StTokenSource" containment="true"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="rootInterpreter" lowerBound="1"
> eType="#//StInterpretationContext" containment="true"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StInterpretationContext">
> <eStructuralFeatures xsi:type="ecore:EReference" name="mainTokenSource" lowerBound="1"
> eType="#//StTokenSource"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="root" lowerBound="1" eType="#//StRootNode"
> containment="true"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="interpreterId" lowerBound="1"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StRootNode" eSuperTypes="#//StConcreteNode"/>
> <eClassifiers xsi:type="ecore:EClass" name="StBaseNode">
> <eStructuralFeatures xsi:type="ecore:EReference" name="parent" eType="#//StBaseNode"
> eOpposite="#//StBaseNode/children"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
> eType="#//StBaseNode" containment="true" eOpposite="#//StBaseNode/parent"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="nodeSources" upperBound="-1"
> eType="#//StTokenSource"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StToken" eSuperTypes="#//StBaseNode">
> <eStructuralFeatures xsi:type="ecore:EReference" name="coordinate" eType="#//StCoordinate"
> containment="true" eOpposite="#//StCoordinate/owner"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tokenType" lowerBound="1"
> eType="#//StTokenType"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="image" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="originalNode" eType="#//StBaseNode"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="tokenSource" lowerBound="1"
> eType="#//StTokenSource">
> <eAnnotations source="teneo.jpa">
> <details key="value" value="@ManyToOne(cascade={PERSIST})"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="formattingType" lowerBound="1"
> eType="#//StFormattingType"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="nonRegulars" upperBound="-1"
> eType="#//StNonRegular" containment="true"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EEnum" name="StTokenType">
> <eLiterals name="Regular"/>
> <eLiterals name="Special" value="1"/>
> <eLiterals name="EOF" value="2"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StCoordinate">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="offset" lowerBound="1"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="length" lowerBound="1"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//StToken"
> eOpposite="#//StToken/coordinate"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StTokenSource">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="uriString" lowerBound="1"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tabSize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EEnum" name="StFormattingType">
> <eLiterals name="None"/>
> <eLiterals name="IndentOnly" value="1"/>
> <eLiterals name="FormatBefore" value="2"/>
> <eLiterals name="FormatAfter" value="3" literal=""/>
> <eLiterals name="Full" value="4"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StNonRegular">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="nonRegularType" lowerBound="1"
> eType="#//StNonRegularType"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="special" eType="#//StToken"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="freeNode" eType="#//StInterpretationContext"
> containment="true"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EEnum" name="StNonRegularType">
> <eLiterals name="Special"/>
> <eLiterals name="FreeNode" value="1"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StConcreteNode" eSuperTypes="#//StBaseNode">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="concreteId" lowerBound="1"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eClassifiers>
> </ecore:EPackage>
Re: [Teneo] Not-null property references a null value [message #92093 is a reply to message #92077] Tue, 31 July 2007 01:08 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Alain,
Which bug do you mean (182825 seemed to point to another bug)?

Not finding the hbm file can be caused by this issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=196535

This was solved in the build of 18 july. Which build are you using?

The other exception you get is this:
> Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
> Unknown column 'strootnode2_.concreteid' in 'field list'

Normally this occurs because the db schema is not in sync with the (in-memory) mapping. Does this
maybe apply to your case?
Other than this I have no real idea why this exception occurs when update_schema is false.

Yes the epackages are required for the initialization. The hbdatastore does some computation which
is not required for all users (adds econtainer mapping and computes referer relations). But overall
I don't think that this takes much time (I have never done performance measurements on that though).

Setting the update_schema to false surely saves time and it is the only option I know for getting
better start up times.

gr. Martin

Alain Picard wrote:
> Martin,
>
> After not being able to generate the mapping and constantly getting the
> error mentioned earlier, I decided to switch to use a joined strategy.
>
> Well, I can now successfully save a model instance to the database.
>
> That being said, I am just facing more issues.
>
> First, off if you look at the ecore that I submitted, some columns are
> of type EEnums. When looking at the database, those enums are not mapped
> as table. Looking at previous post, and at bug 182825 and at the default
> for enumerated columns being ordinal (9.1.21) then how do I get the
> extra tables generated and the ordinal values saved instead of the text
> value in a standard varchar column.
>
> 2nd, I am trying to find the best and most efficient way to "initialize"
> the HbDataStore.
>
> I have tried to set the USE_MAPPING_FILE property, only to get exception
> "org.hibernate.hql.ast.QuerySyntaxException: StTreeRoot is not mapped,
> etc. I found a post of March 27 covering this issue, but here is what I
> get in my log:
> DEBUG [30 Jul 2007 19:43] HbSessionDataStore.java: 156 : Searching
> hbm files in class paths of epackages
> DEBUG [30 Jul 2007 19:43] StoreUtil.java: 514 : >>>> Building or
> descriptor file List
> DEBUG [30 Jul 2007 19:43] StoreUtil.java: 528 : Try path:
> ;hibernate.hbm.xml
> and then it moves on. I have tried to put the hibernate.hbm.xml file in
> the classpath (beside log4j.properties), at the root, in the package
> directory. When comparing with the above mentioned post, I don't see any
> other try path listed or !found anywhere. Any clue?
>
> Next, I have set the UPDATE_SCHEMA to false, to try to speed up the
> initialization (once the schema is stable, I believe that should be the
> standard way to go). Anyway, I now get the following after executing a
> query:
> org.hibernate.exception.SQLGrammarException: could not load an
> entity: [StInterpretationContext#1]
> at
> org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
>
> at
> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
>
> at org.hibernate.loader.Loader.loadEntity(Loader.java:1874)
> at
> org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:48)
>
> at
> org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:42)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.load( AbstractEntityPersister.java:3042)
>
> at
> org.hibernate.event.def.DefaultLoadEventListener.loadFromDat asource(DefaultLoadEventListener.java:395)
>
> at
> org.hibernate.event.def.DefaultLoadEventListener.doLoad(Defa ultLoadEventListener.java:375)
>
> at
> org.hibernate.event.def.DefaultLoadEventListener.load(Defaul tLoadEventListener.java:139)
>
> at
> org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad (DefaultLoadEventListener.java:179)
>
> at
> org.hibernate.event.def.DefaultLoadEventListener.onLoad(Defa ultLoadEventListener.java:103)
>
> at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878 )
> at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java :846)
> at org.hibernate.type.EntityType.resolveIdentifier(EntityType.j ava:557)
> at org.hibernate.type.EntityType.resolve(EntityType.java:379)
> at
> org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:116)
> at
> org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:854)
>
> at org.hibernate.loader.Loader.doQuery(Loader.java:729)
> at
> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
>
> at org.hibernate.loader.Loader.doList(Loader.java:2220)
> at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2104)
> at org.hibernate.loader.Loader.list(Loader.java:2099)
> at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 78)
> at
> org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
>
> at
> org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
> at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
> at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
> at test.TestSTM.main(TestSTM.java:100)
> Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
> Unknown column 'strootnode2_.concreteid' in 'field list'
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936 )
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
> at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
> at
> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedSta tement.java:1268)
>
> at
> com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatem ent.java:1403)
> at
> org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc her.java:186)
> at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
> at org.hibernate.loader.Loader.doQuery(Loader.java:674)
> at
> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
>
> at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
> ... 25 more
> this does not occur if the option is not specified. Any idea why this is
> happening?
>
> At last, what would be your most efficient "initialization" routine for
> HbDataStore. Do you need to set EPackage every time? etc.
>
> Thanks again for all your help. We're slowly but surely getting there.
>
> Alain
>
>
> Martin Taal wrote:
>> Hi Alain,
>> The following happens. The StTokenImpl has a many-to-one reference to
>> the StTokenSourceImpl. Before saving the StTokenImpl it nullifies the
>> reference to the StTokenSourceImpl because StTokenSourceImpl is not
>> yet saved in the db (this nullifying does not occur in the object but
>> in a separate array of values kept by hibernate).
>> This can be repaired by first saving StTokenSourceImpl or by setting a
>> cascade annotation on the ereference (I tried the last and it seemed
>> to work, see the attached ecore).
>>
>> gr. Martin
>>
>> Alain Picard wrote:
>>> Oops, here is the attachment
>>>
>>> Alain
>>
>>
>>
>> ------------------------------------------------------------ ------------
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <ecore:EPackage xmi:version="2.0"
>> xmlns:xmi="http://www.omg.org/XMI"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>> name="STM_MetaModel"
>> nsURI="http://com.castortech.stm" nsPrefix="STM_MetaModel">
>> <eClassifiers xsi:type="ecore:EClass" name="StTreeRoot">
>> <eStructuralFeatures xsi:type="ecore:EReference" name="sources"
>> lowerBound="1"
>> upperBound="-1" eType="#//StTokenSource" containment="true"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="rootInterpreter" lowerBound="1"
>> eType="#//StInterpretationContext" containment="true"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StInterpretationContext">
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="mainTokenSource" lowerBound="1"
>> eType="#//StTokenSource"/>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="root"
>> lowerBound="1" eType="#//StRootNode"
>> containment="true"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="interpreterId" lowerBound="1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StRootNode"
>> eSuperTypes="#//StConcreteNode"/>
>> <eClassifiers xsi:type="ecore:EClass" name="StBaseNode">
>> <eStructuralFeatures xsi:type="ecore:EReference" name="parent"
>> eType="#//StBaseNode"
>> eOpposite="#//StBaseNode/children"/>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="children"
>> upperBound="-1"
>> eType="#//StBaseNode" containment="true"
>> eOpposite="#//StBaseNode/parent"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="nodeSources" upperBound="-1"
>> eType="#//StTokenSource"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StToken"
>> eSuperTypes="#//StBaseNode">
>> <eStructuralFeatures xsi:type="ecore:EReference" name="coordinate"
>> eType="#//StCoordinate"
>> containment="true" eOpposite="#//StCoordinate/owner"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tokenType"
>> lowerBound="1"
>> eType="#//StTokenType"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="image"
>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind"
>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="originalNode" eType="#//StBaseNode"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="tokenSource" lowerBound="1"
>> eType="#//StTokenSource">
>> <eAnnotations source="teneo.jpa">
>> <details key="value" value="@ManyToOne(cascade={PERSIST})"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="formattingType" lowerBound="1"
>> eType="#//StFormattingType"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="nonRegulars" upperBound="-1"
>> eType="#//StNonRegular" containment="true"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EEnum" name="StTokenType">
>> <eLiterals name="Regular"/>
>> <eLiterals name="Special" value="1"/>
>> <eLiterals name="EOF" value="2"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StCoordinate">
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="offset"
>> lowerBound="1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="length"
>> lowerBound="1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type"
>> lowerBound="1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="owner"
>> lowerBound="1" eType="#//StToken"
>> eOpposite="#//StToken/coordinate"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StTokenSource">
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="uriString"
>> lowerBound="1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tabSize"
>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EEnum" name="StFormattingType">
>> <eLiterals name="None"/>
>> <eLiterals name="IndentOnly" value="1"/>
>> <eLiterals name="FormatBefore" value="2"/>
>> <eLiterals name="FormatAfter" value="3" literal=""/>
>> <eLiterals name="Full" value="4"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StNonRegular">
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="nonRegularType" lowerBound="1"
>> eType="#//StNonRegularType"/>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="special"
>> eType="#//StToken"/>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="freeNode"
>> eType="#//StInterpretationContext"
>> containment="true"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EEnum" name="StNonRegularType">
>> <eLiterals name="Special"/>
>> <eLiterals name="FreeNode" value="1"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StConcreteNode"
>> eSuperTypes="#//StBaseNode">
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="concreteId"
>> lowerBound="1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> </eClassifiers>
>> </ecore:EPackage>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Not-null property references a null value [message #92110 is a reply to message #92093] Tue, 31 July 2007 02:33 Go to previous messageGo to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 253
Registered: July 2009
Senior Member
Martin,

I was using the version from July 12. After upgrading the version from the 21st, now both of my issue with the options have melted
away. Great news.

Now on the remaining point from my previous post:
If you look at the ecore that I submitted, some columns are of type EEnums. When looking at the database, those enums are not
mapped as table. Looking at previous post, and at bug 182825 and at the default for enumerated columns being ordinal (9.1.21) then
how do I get the extra tables generated and the ordinal values saved instead of the text value in a standard varchar column.

Thanks,
Alain


Martin Taal wrote:
> Alain,
> Which bug do you mean (182825 seemed to point to another bug)?
>
> Not finding the hbm file can be caused by this issue:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=196535
>
> This was solved in the build of 18 july. Which build are you using?
>
> The other exception you get is this:
> > Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
> > Unknown column 'strootnode2_.concreteid' in 'field list'
>
> Normally this occurs because the db schema is not in sync with the
> (in-memory) mapping. Does this maybe apply to your case?
> Other than this I have no real idea why this exception occurs when
> update_schema is false.
>
> Yes the epackages are required for the initialization. The hbdatastore
> does some computation which is not required for all users (adds
> econtainer mapping and computes referer relations). But overall I don't
> think that this takes much time (I have never done performance
> measurements on that though).
>
> Setting the update_schema to false surely saves time and it is the only
> option I know for getting better start up times.
>
> gr. Martin
>
> Alain Picard wrote:
>> Martin,
>>
>> After not being able to generate the mapping and constantly getting
>> the error mentioned earlier, I decided to switch to use a joined
>> strategy.
>>
>> Well, I can now successfully save a model instance to the database.
>>
>> That being said, I am just facing more issues.
>>
>> First, off if you look at the ecore that I submitted, some columns are
>> of type EEnums. When looking at the database, those enums are not
>> mapped as table. Looking at previous post, and at bug 182825 and at
>> the default for enumerated columns being ordinal (9.1.21) then how do
>> I get the extra tables generated and the ordinal values saved instead
>> of the text value in a standard varchar column.
>>
>> 2nd, I am trying to find the best and most efficient way to
>> "initialize" the HbDataStore.
>>
>> I have tried to set the USE_MAPPING_FILE property, only to get
>> exception "org.hibernate.hql.ast.QuerySyntaxException: StTreeRoot is
>> not mapped, etc. I found a post of March 27 covering this issue, but
>> here is what I get in my log:
>> DEBUG [30 Jul 2007 19:43] HbSessionDataStore.java: 156 : Searching
>> hbm files in class paths of epackages
>> DEBUG [30 Jul 2007 19:43] StoreUtil.java: 514 : >>>> Building or
>> descriptor file List
>> DEBUG [30 Jul 2007 19:43] StoreUtil.java: 528 : Try path:
>> ;hibernate.hbm.xml
>> and then it moves on. I have tried to put the hibernate.hbm.xml file
>> in the classpath (beside log4j.properties), at the root, in the
>> package directory. When comparing with the above mentioned post, I
>> don't see any other try path listed or !found anywhere. Any clue?
>>
>> Next, I have set the UPDATE_SCHEMA to false, to try to speed up the
>> initialization (once the schema is stable, I believe that should be
>> the standard way to go). Anyway, I now get the following after
>> executing a query:
>> org.hibernate.exception.SQLGrammarException: could not load an
>> entity: [StInterpretationContext#1]
>> at
>> org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
>>
>> at
>> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
>>
>> at org.hibernate.loader.Loader.loadEntity(Loader.java:1874)
>> at
>> org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:48)
>>
>> at
>> org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:42)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.load( AbstractEntityPersister.java:3042)
>>
>> at
>> org.hibernate.event.def.DefaultLoadEventListener.loadFromDat asource(DefaultLoadEventListener.java:395)
>>
>> at
>> org.hibernate.event.def.DefaultLoadEventListener.doLoad(Defa ultLoadEventListener.java:375)
>>
>> at
>> org.hibernate.event.def.DefaultLoadEventListener.load(Defaul tLoadEventListener.java:139)
>>
>> at
>> org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad (DefaultLoadEventListener.java:179)
>>
>> at
>> org.hibernate.event.def.DefaultLoadEventListener.onLoad(Defa ultLoadEventListener.java:103)
>>
>> at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878 )
>> at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java :846)
>> at
>> org.hibernate.type.EntityType.resolveIdentifier(EntityType.j ava:557)
>> at org.hibernate.type.EntityType.resolve(EntityType.java:379)
>> at
>> org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:116)
>> at
>> org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:854)
>>
>> at org.hibernate.loader.Loader.doQuery(Loader.java:729)
>> at
>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
>>
>> at org.hibernate.loader.Loader.doList(Loader.java:2220)
>> at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2104)
>> at org.hibernate.loader.Loader.list(Loader.java:2099)
>> at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 78)
>> at
>> org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
>>
>> at
>> org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
>>
>> at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
>> at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
>> at test.TestSTM.main(TestSTM.java:100)
>> Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
>> Unknown column 'strootnode2_.concreteid' in 'field list'
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936 )
>> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
>> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
>> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
>> at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
>> at
>> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedSta tement.java:1268)
>>
>> at
>> com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatem ent.java:1403)
>>
>> at
>> org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc her.java:186)
>> at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
>> at org.hibernate.loader.Loader.doQuery(Loader.java:674)
>> at
>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
>>
>> at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
>> ... 25 more
>> this does not occur if the option is not specified. Any idea why this
>> is happening?
>>
>> At last, what would be your most efficient "initialization" routine
>> for HbDataStore. Do you need to set EPackage every time? etc.
>>
>> Thanks again for all your help. We're slowly but surely getting there.
>>
>> Alain
>>
>>
>> Martin Taal wrote:
>>> Hi Alain,
>>> The following happens. The StTokenImpl has a many-to-one reference to
>>> the StTokenSourceImpl. Before saving the StTokenImpl it nullifies the
>>> reference to the StTokenSourceImpl because StTokenSourceImpl is not
>>> yet saved in the db (this nullifying does not occur in the object but
>>> in a separate array of values kept by hibernate).
>>> This can be repaired by first saving StTokenSourceImpl or by setting
>>> a cascade annotation on the ereference (I tried the last and it
>>> seemed to work, see the attached ecore).
>>>
>>> gr. Martin
>>>
>>> Alain Picard wrote:
>>>> Oops, here is the attachment
>>>>
>>>> Alain
>>>
>>>
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <ecore:EPackage xmi:version="2.0"
>>> xmlns:xmi="http://www.omg.org/XMI"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>>> name="STM_MetaModel"
>>> nsURI="http://com.castortech.stm" nsPrefix="STM_MetaModel">
>>> <eClassifiers xsi:type="ecore:EClass" name="StTreeRoot">
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="sources"
>>> lowerBound="1"
>>> upperBound="-1" eType="#//StTokenSource" containment="true"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="rootInterpreter" lowerBound="1"
>>> eType="#//StInterpretationContext" containment="true"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StInterpretationContext">
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="mainTokenSource" lowerBound="1"
>>> eType="#//StTokenSource"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="root"
>>> lowerBound="1" eType="#//StRootNode"
>>> containment="true"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>> name="interpreterId" lowerBound="1"
>>> eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StRootNode"
>>> eSuperTypes="#//StConcreteNode"/>
>>> <eClassifiers xsi:type="ecore:EClass" name="StBaseNode">
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="parent"
>>> eType="#//StBaseNode"
>>> eOpposite="#//StBaseNode/children"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="children"
>>> upperBound="-1"
>>> eType="#//StBaseNode" containment="true"
>>> eOpposite="#//StBaseNode/parent"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="nodeSources" upperBound="-1"
>>> eType="#//StTokenSource"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StToken"
>>> eSuperTypes="#//StBaseNode">
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="coordinate" eType="#//StCoordinate"
>>> containment="true" eOpposite="#//StCoordinate/owner"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tokenType"
>>> lowerBound="1"
>>> eType="#//StTokenType"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="image"
>>> eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind"
>>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="originalNode" eType="#//StBaseNode"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="tokenSource" lowerBound="1"
>>> eType="#//StTokenSource">
>>> <eAnnotations source="teneo.jpa">
>>> <details key="value" value="@ManyToOne(cascade={PERSIST})"/>
>>> </eAnnotations>
>>> </eStructuralFeatures>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>> name="formattingType" lowerBound="1"
>>> eType="#//StFormattingType"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="nonRegulars" upperBound="-1"
>>> eType="#//StNonRegular" containment="true"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EEnum" name="StTokenType">
>>> <eLiterals name="Regular"/>
>>> <eLiterals name="Special" value="1"/>
>>> <eLiterals name="EOF" value="2"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StCoordinate">
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="offset"
>>> lowerBound="1"
>>> eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="length"
>>> lowerBound="1"
>>> eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type"
>>> lowerBound="1" eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="owner"
>>> lowerBound="1" eType="#//StToken"
>>> eOpposite="#//StToken/coordinate"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StTokenSource">
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="uriString"
>>> lowerBound="1"
>>> eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tabSize"
>>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EEnum" name="StFormattingType">
>>> <eLiterals name="None"/>
>>> <eLiterals name="IndentOnly" value="1"/>
>>> <eLiterals name="FormatBefore" value="2"/>
>>> <eLiterals name="FormatAfter" value="3" literal=""/>
>>> <eLiterals name="Full" value="4"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StNonRegular">
>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>> name="nonRegularType" lowerBound="1"
>>> eType="#//StNonRegularType"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="special"
>>> eType="#//StToken"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="freeNode"
>>> eType="#//StInterpretationContext"
>>> containment="true"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EEnum" name="StNonRegularType">
>>> <eLiterals name="Special"/>
>>> <eLiterals name="FreeNode" value="1"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StConcreteNode"
>>> eSuperTypes="#//StBaseNode">
>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>> name="concreteId" lowerBound="1"
>>> eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>> </eClassifiers>
>>> </ecore:EPackage>
>
>
Re: [Teneo] Not-null property references a null value [message #92155 is a reply to message #92110] Tue, 31 July 2007 12:09 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Alain,
Yes it is true that the current default is String and not Ordinal. Overall in my view String is
better (at least it was for me). You can change this behavior by setting an @Enumerated annotation
in the edatatype of the enum.
A global option can also be of use here, please enter a bugzilla if you find that better.

I am not sure why you want to have the enumerated efeature stored in a separate table. Is it a list
of enumerates?

gr. Martin

Alain Picard wrote:
> Martin,
>
> I was using the version from July 12. After upgrading the version from
> the 21st, now both of my issue with the options have melted away. Great
> news.
>
> Now on the remaining point from my previous post:
> If you look at the ecore that I submitted, some columns are of type
> EEnums. When looking at the database, those enums are not mapped as
> table. Looking at previous post, and at bug 182825 and at the default
> for enumerated columns being ordinal (9.1.21) then how do I get the
> extra tables generated and the ordinal values saved instead of the text
> value in a standard varchar column.
>
> Thanks,
> Alain
>
>
> Martin Taal wrote:
>> Alain,
>> Which bug do you mean (182825 seemed to point to another bug)?
>>
>> Not finding the hbm file can be caused by this issue:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=196535
>>
>> This was solved in the build of 18 july. Which build are you using?
>>
>> The other exception you get is this:
>> > Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
>> > Unknown column 'strootnode2_.concreteid' in 'field list'
>>
>> Normally this occurs because the db schema is not in sync with the
>> (in-memory) mapping. Does this maybe apply to your case?
>> Other than this I have no real idea why this exception occurs when
>> update_schema is false.
>>
>> Yes the epackages are required for the initialization. The hbdatastore
>> does some computation which is not required for all users (adds
>> econtainer mapping and computes referer relations). But overall I
>> don't think that this takes much time (I have never done performance
>> measurements on that though).
>>
>> Setting the update_schema to false surely saves time and it is the
>> only option I know for getting better start up times.
>>
>> gr. Martin
>>
>> Alain Picard wrote:
>>> Martin,
>>>
>>> After not being able to generate the mapping and constantly getting
>>> the error mentioned earlier, I decided to switch to use a joined
>>> strategy.
>>>
>>> Well, I can now successfully save a model instance to the database.
>>>
>>> That being said, I am just facing more issues.
>>>
>>> First, off if you look at the ecore that I submitted, some columns
>>> are of type EEnums. When looking at the database, those enums are not
>>> mapped as table. Looking at previous post, and at bug 182825 and at
>>> the default for enumerated columns being ordinal (9.1.21) then how do
>>> I get the extra tables generated and the ordinal values saved instead
>>> of the text value in a standard varchar column.
>>>
>>> 2nd, I am trying to find the best and most efficient way to
>>> "initialize" the HbDataStore.
>>>
>>> I have tried to set the USE_MAPPING_FILE property, only to get
>>> exception "org.hibernate.hql.ast.QuerySyntaxException: StTreeRoot is
>>> not mapped, etc. I found a post of March 27 covering this issue, but
>>> here is what I get in my log:
>>> DEBUG [30 Jul 2007 19:43] HbSessionDataStore.java: 156 : Searching
>>> hbm files in class paths of epackages
>>> DEBUG [30 Jul 2007 19:43] StoreUtil.java: 514 : >>>> Building or
>>> descriptor file List
>>> DEBUG [30 Jul 2007 19:43] StoreUtil.java: 528 : Try path:
>>> ;hibernate.hbm.xml
>>> and then it moves on. I have tried to put the hibernate.hbm.xml file
>>> in the classpath (beside log4j.properties), at the root, in the
>>> package directory. When comparing with the above mentioned post, I
>>> don't see any other try path listed or !found anywhere. Any clue?
>>>
>>> Next, I have set the UPDATE_SCHEMA to false, to try to speed up the
>>> initialization (once the schema is stable, I believe that should be
>>> the standard way to go). Anyway, I now get the following after
>>> executing a query:
>>> org.hibernate.exception.SQLGrammarException: could not load an
>>> entity: [StInterpretationContext#1]
>>> at
>>> org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
>>>
>>> at
>>> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
>>>
>>> at org.hibernate.loader.Loader.loadEntity(Loader.java:1874)
>>> at
>>> org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:48)
>>>
>>> at
>>> org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:42)
>>>
>>> at
>>> org.hibernate.persister.entity.AbstractEntityPersister.load( AbstractEntityPersister.java:3042)
>>>
>>> at
>>> org.hibernate.event.def.DefaultLoadEventListener.loadFromDat asource(DefaultLoadEventListener.java:395)
>>>
>>> at
>>> org.hibernate.event.def.DefaultLoadEventListener.doLoad(Defa ultLoadEventListener.java:375)
>>>
>>> at
>>> org.hibernate.event.def.DefaultLoadEventListener.load(Defaul tLoadEventListener.java:139)
>>>
>>> at
>>> org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad (DefaultLoadEventListener.java:179)
>>>
>>> at
>>> org.hibernate.event.def.DefaultLoadEventListener.onLoad(Defa ultLoadEventListener.java:103)
>>>
>>> at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878 )
>>> at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java :846)
>>> at
>>> org.hibernate.type.EntityType.resolveIdentifier(EntityType.j ava:557)
>>> at org.hibernate.type.EntityType.resolve(EntityType.java:379)
>>> at
>>> org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:116)
>>>
>>> at
>>> org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:854)
>>>
>>> at org.hibernate.loader.Loader.doQuery(Loader.java:729)
>>> at
>>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
>>>
>>> at org.hibernate.loader.Loader.doList(Loader.java:2220)
>>> at
>>> org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2104)
>>> at org.hibernate.loader.Loader.list(Loader.java:2099)
>>> at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 78)
>>> at
>>> org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
>>>
>>> at
>>> org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
>>>
>>> at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
>>> at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
>>> at test.TestSTM.main(TestSTM.java:100)
>>> Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
>>> Unknown column 'strootnode2_.concreteid' in 'field list'
>>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936 )
>>> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
>>> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
>>> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
>>> at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
>>> at
>>> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedSta tement.java:1268)
>>>
>>> at
>>> com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatem ent.java:1403)
>>>
>>> at
>>> org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc her.java:186)
>>>
>>> at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
>>> at org.hibernate.loader.Loader.doQuery(Loader.java:674)
>>> at
>>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
>>>
>>> at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
>>> ... 25 more
>>> this does not occur if the option is not specified. Any idea why this
>>> is happening?
>>>
>>> At last, what would be your most efficient "initialization" routine
>>> for HbDataStore. Do you need to set EPackage every time? etc.
>>>
>>> Thanks again for all your help. We're slowly but surely getting there.
>>>
>>> Alain
>>>
>>>
>>> Martin Taal wrote:
>>>> Hi Alain,
>>>> The following happens. The StTokenImpl has a many-to-one reference
>>>> to the StTokenSourceImpl. Before saving the StTokenImpl it nullifies
>>>> the reference to the StTokenSourceImpl because StTokenSourceImpl is
>>>> not yet saved in the db (this nullifying does not occur in the
>>>> object but in a separate array of values kept by hibernate).
>>>> This can be repaired by first saving StTokenSourceImpl or by setting
>>>> a cascade annotation on the ereference (I tried the last and it
>>>> seemed to work, see the attached ecore).
>>>>
>>>> gr. Martin
>>>>
>>>> Alain Picard wrote:
>>>>> Oops, here is the attachment
>>>>>
>>>>> Alain
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------ ------------
>>>>
>>>>e
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <ecore:EPackage xmi:version="2.0"
>>>> xmlns:xmi="http://www.omg.org/XMI"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>>>> name="STM_MetaModel"
>>>> nsURI="http://com.castortech.stm" nsPrefix="STM_MetaModel">
>>>> <eClassifiers xsi:type="ecore:EClass" name="StTreeRoot">
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="sources"
>>>> lowerBound="1"
>>>> upperBound="-1" eType="#//StTokenSource" containment="true"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="rootInterpreter" lowerBound="1"
>>>> eType="#//StInterpretationContext" containment="true"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StInterpretationContext">
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="mainTokenSource" lowerBound="1"
>>>> eType="#//StTokenSource"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="root"
>>>> lowerBound="1" eType="#//StRootNode"
>>>> containment="true"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="interpreterId" lowerBound="1"
>>>> eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StRootNode"
>>>> eSuperTypes="#//StConcreteNode"/>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StBaseNode">
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="parent"
>>>> eType="#//StBaseNode"
>>>> eOpposite="#//StBaseNode/children"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="children"
>>>> upperBound="-1"
>>>> eType="#//StBaseNode" containment="true"
>>>> eOpposite="#//StBaseNode/parent"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="nodeSources" upperBound="-1"
>>>> eType="#//StTokenSource"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StToken"
>>>> eSuperTypes="#//StBaseNode">
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="coordinate" eType="#//StCoordinate"
>>>> containment="true" eOpposite="#//StCoordinate/owner"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="tokenType" lowerBound="1"
>>>> eType="#//StTokenType"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="image"
>>>> eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind"
>>>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="originalNode" eType="#//StBaseNode"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="tokenSource" lowerBound="1"
>>>> eType="#//StTokenSource">
>>>> <eAnnotations source="teneo.jpa">
>>>> <details key="value" value="@ManyToOne(cascade={PERSIST})"/>
>>>> </eAnnotations>
>>>> </eStructuralFeatures>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="formattingType" lowerBound="1"
>>>> eType="#//StFormattingType"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="nonRegulars" upperBound="-1"
>>>> eType="#//StNonRegular" containment="true"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EEnum" name="StTokenType">
>>>> <eLiterals name="Regular"/>
>>>> <eLiterals name="Special" value="1"/>
>>>> <eLiterals name="EOF" value="2"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StCoordinate">
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="offset"
>>>> lowerBound="1"
>>>> eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="length"
>>>> lowerBound="1"
>>>> eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type"
>>>> lowerBound="1" eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="owner"
>>>> lowerBound="1" eType="#//StToken"
>>>> eOpposite="#//StToken/coordinate"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StTokenSource">
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="uriString" lowerBound="1"
>>>> eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tabSize"
>>>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EEnum" name="StFormattingType">
>>>> <eLiterals name="None"/>
>>>> <eLiterals name="IndentOnly" value="1"/>
>>>> <eLiterals name="FormatBefore" value="2"/>
>>>> <eLiterals name="FormatAfter" value="3" literal=""/>
>>>> <eLiterals name="Full" value="4"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StNonRegular">
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="nonRegularType" lowerBound="1"
>>>> eType="#//StNonRegularType"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="special"
>>>> eType="#//StToken"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="freeNode"
>>>> eType="#//StInterpretationContext"
>>>> containment="true"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EEnum" name="StNonRegularType">
>>>> <eLiterals name="Special"/>
>>>> <eLiterals name="FreeNode" value="1"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StConcreteNode"
>>>> eSuperTypes="#//StBaseNode">
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="concreteId" lowerBound="1"
>>>> eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>>> </eClassifiers>
>>>> </ecore:EPackage>
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Not-null property references a null value [message #92238 is a reply to message #92155] Tue, 31 July 2007 19:09 Go to previous messageGo to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 253
Registered: July 2009
Senior Member
Martin,

Thanks I have successfully added the @Enumerated(ORDINAL) and that worked.

I was kind of expecting the enumerated efeature stored in a separate table to do like Michael Kanaley mentioned a few months back. I
also felt that from a pure database perspective that made the stored model "self-sufficient" and complete, without having to rely on
external data if someone wanted to work with the database only.

Obviously, when dealing with the contents with EMF/Teneo, it really doesn't make much of a difference.

Cheers
Alain
Re: [Teneo] Not-null property references a null value [message #92253 is a reply to message #92238] Tue, 31 July 2007 20:31 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Alain,
What I remember from Michael's issue was that it was a list of enumerates. For that case it is
logical to have a separate table (each record in the table is then one enum instance of the list).
For single value fields a column is enough.

gr. Martin

Alain Picard wrote:
> Martin,
>
> Thanks I have successfully added the @Enumerated(ORDINAL) and that worked.
>
> I was kind of expecting the enumerated efeature stored in a separate
> table to do like Michael Kanaley mentioned a few months back. I also
> felt that from a pure database perspective that made the stored model
> "self-sufficient" and complete, without having to rely on external data
> if someone wanted to work with the database only.
>
> Obviously, when dealing with the contents with EMF/Teneo, it really
> doesn't make much of a difference.
>
> Cheers
> Alain


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Not-null property references a null value [message #608925 is a reply to message #91822] Thu, 26 July 2007 05:36 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Yes I would need a small testcase to reproduce this.

gr. Martin

Alain Picard wrote:
> I have created a new EMF model and have been populating it, saving it
> and validating it as XMI.
>
> I now added code to use Teneo and I get the following error:
> org.hibernate.PropertyValueException: not-null property references a
> null or transient value: StToken.tokenSource
> at
> org.hibernate.engine.Nullability.checkNullability(Nullabilit y.java:72)
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:290)
>
> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at
> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
>
> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at
> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
>
> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at
> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
>
> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeBef oreSave(AbstractSaveEventListener.java:431)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:265)
>
> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeBef oreSave(AbstractSaveEventListener.java:431)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:265)
>
> 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.DefaultSaveEventListener.saveWithGen eratedOrRequestedId(DefaultSaveEventListener.java:33)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>
> at
> org.hibernate.event.def.DefaultSaveEventListener.performSave OrUpdate(DefaultSaveEventListener.java:27)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>
> at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535 )
> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
> at
> com.castortech.common.visitors.BaseSTMTreeCopier.save(BaseST MTreeCopier.java:224)
>
>
> It is telling me that the Tokensource is null. I put a breakpoint at the
> source of the error and looking at the culprit record it appears at that
> point to be null, but when looking at the EMF objects it is not. Here is
> the XMI output of it (look for "<==here"):
>
> <rootInterpreter mainTokenSource="//@sources.0"
> interpreterId="CobolInterpreter">
> <root concreteId="CompilationUnit">
> <children xsi:type="STM_MetaModel:StConcreteNode"
> concreteId="ProgramUnit">
> <children xsi:type="STM_MetaModel:StConcreteNode"
> concreteId="IdentificationDivision">
> <children xsi:type="STM_MetaModel:StToken"
> image="IDENTIFICATION" kind="264" tokenSource="//@sources.0"> <==here
> <coordinate length="14" type="Token"/>
> </children>
>
> I can surely pull some more stuff, please just let me know what would be
> needed to figure this one out.
>
> Thanks
> Alain Picard


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Not-null property references a null value [message #608943 is a reply to message #91858] Thu, 26 July 2007 17:48 Go to previous message
Alain Picard is currently offline Alain PicardFriend
Messages: 253
Registered: July 2009
Senior Member
Martin,

I have tried to put together a test case and I now get an error generating the mapping:
Exception in thread "main" org.hibernate.MappingException: Cannot use identity column key generation with <union-subclass> mapping
for: StToken
at org.hibernate.persister.entity.UnionSubclassEntityPersister. <init>(UnionSubclassEntityPersister.java:67)
at org.hibernate.persister.PersisterFactory.createClassPersiste r(PersisterFactory.java:61)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1294)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:170)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:87)
at test.TestSTM.main(TestSTM.java:49)

I did get that once yesterday and did a search and thought it was related to a duplicate naming issue. Changed that and then that
went fine. But not today.

I am enclosing the zip of the small project, except for the auto-generated stuff (no manual changes done here yet).

There is also the TestSTM program which was intended to reproduced and demonstrate the initial issue.

Thanks for your help and insight here.

Alain


Martin Taal wrote:
> Yes I would need a small testcase to reproduce this.
>
> gr. Martin
>
> Alain Picard wrote:
>> I have created a new EMF model and have been populating it, saving it
>> and validating it as XMI.
>>
>> I now added code to use Teneo and I get the following error:
>> org.hibernate.PropertyValueException: not-null property references a
>> null or transient value: StToken.tokenSource
>> at
>> org.hibernate.engine.Nullability.checkNullability(Nullabilit y.java:72)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:290)
>>
>> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
>> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at
>> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
>> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
>>
>> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
>> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at
>> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
>> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
>>
>> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
>> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at
>> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
>> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:456)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:334)
>>
>> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
>> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.cascadeBef oreSave(AbstractSaveEventListener.java:431)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:265)
>>
>> 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.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
>> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
>> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
>> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
>> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.cascadeBef oreSave(AbstractSaveEventListener.java:431)
>>
>> at
>> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:265)
>>
>> 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.DefaultSaveEventListener.saveWithGen eratedOrRequestedId(DefaultSaveEventListener.java:33)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
>>
>> at
>> org.hibernate.event.def.DefaultSaveEventListener.performSave OrUpdate(DefaultSaveEventListener.java:27)
>>
>> at
>> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>>
>> at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535 )
>> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
>> at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
>> at
>> com.castortech.common.visitors.BaseSTMTreeCopier.save(BaseST MTreeCopier.java:224)
>>
>>
>> It is telling me that the Tokensource is null. I put a breakpoint at
>> the source of the error and looking at the culprit record it appears
>> at that point to be null, but when looking at the EMF objects it is
>> not. Here is the XMI output of it (look for "<==here"):
>>
>> <rootInterpreter mainTokenSource="//@sources.0"
>> interpreterId="CobolInterpreter">
>> <root concreteId="CompilationUnit">
>> <children xsi:type="STM_MetaModel:StConcreteNode"
>> concreteId="ProgramUnit">
>> <children xsi:type="STM_MetaModel:StConcreteNode"
>> concreteId="IdentificationDivision">
>> <children xsi:type="STM_MetaModel:StToken"
>> image="IDENTIFICATION" kind="264" tokenSource="//@sources.0"> <==here
>> <coordinate length="14" type="Token"/>
>> </children>
>>
>> I can surely pull some more stuff, please just let me know what would
>> be needed to figure this one out.
>>
>> Thanks
>> Alain Picard
>
>
Re: [Teneo] Not-null property references a null value [message #608945 is a reply to message #91858] Thu, 26 July 2007 17:49 Go to previous message
Alain Picard is currently offline Alain PicardFriend
Messages: 253
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090407000705010405040502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Oops, here is the attachment

Alain

--------------090407000705010405040502
Content-Type: application/x-zip-compressed;
name="STM.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="STM.zip"

UEsDBBQAAAAIAAlr+jbTnzGV9wAAAP0BAAAOAAAAU1RNLy5jbGFzc3BhdGid kUFLw0AQhc8K
/oew9+7ai3hILFUitGiVJBU8lc3ukKyus3F2t7T/3mgbLFI89DZv+N7jDZNO Nh82WQN54zBj
Y37JEkDltMEmY8vqfnTNJjcX56my0vtOhrYXZ78KMNA2eTeoM+ZJseR7uRvF MRI2naMAPR0o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AACSgAAFNU
TS9zcmMvU1RNX01ldGFNb2RlbC91dGlsL1BLAQIUAAoAAAAAAA5L+jbllMuO KQAAACkAAAAk
AAAAAAAAAAEAIQAAAEIoAABTVE0vc3JjL3RlbmVvLXBlcnNpc3RlbmNlLnBy b3BlcnRpZXNQ
SwECFAAKAAAAAABmSPo2AAAAAAAAAAAAAAAADQAAAAAAAAAAABAAAACtKAAA U1RNL3NyYy90
ZXN0L1BLAQIUABQAAAAIABxW+jbvAa6JLQUAABkOAAAZAAAAAAAAAAEAIAAA ANgoAABTVE0v
c3JjL3Rlc3QvVGVzdFNUTS5qYXZhUEsBAhQACgAAAAAAAGv6NgAAAAAAAAAA AAAAAAQAAAAA
AAAAAAAQAAAAPC4AAFNUTS9QSwUGAAAAAB4AHgCzBwAAXi4AAAAA
--------------090407000705010405040502--
Re: [Teneo] Not-null property references a null value [message #609356 is a reply to message #91985] Mon, 30 July 2007 11:35 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090407090607000900090503
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Alain,
The following happens. The StTokenImpl has a many-to-one reference to the StTokenSourceImpl. Before
saving the StTokenImpl it nullifies the reference to the StTokenSourceImpl because StTokenSourceImpl
is not yet saved in the db (this nullifying does not occur in the object but in a separate array of
values kept by hibernate).
This can be repaired by first saving StTokenSourceImpl or by setting a cascade annotation on the
ereference (I tried the last and it seemed to work, see the attached ecore).

gr. Martin

Alain Picard wrote:
> Oops, here is the attachment
>
> Alain


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org

--------------090407090607000900090503
Content-Type: text/xml;
name="STM.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="STM.ecore"

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="STM_MetaModel"
nsURI="http://com.castortech.stm" nsPrefix="STM_MetaModel">
<eClassifiers xsi:type="ecore:EClass" name="StTreeRoot">
<eStructuralFeatures xsi:type="ecore:EReference" name="sources" lowerBound="1"
upperBound="-1" eType="#//StTokenSource" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="rootInterpreter" lowerBound="1"
eType="#//StInterpretationContext" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StInterpretationContext">
<eStructuralFeatures xsi:type="ecore:EReference" name="mainTokenSource" lowerBound="1"
eType="#//StTokenSource"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="root" lowerBound="1" eType="#//StRootNode"
containment="true"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="interpreterId" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StRootNode" eSuperTypes="#//StConcreteNode"/>
<eClassifiers xsi:type="ecore:EClass" name="StBaseNode">
<eStructuralFeatures xsi:type="ecore:EReference" name="parent" eType="#//StBaseNode"
eOpposite="#//StBaseNode/children"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
eType="#//StBaseNode" containment="true" eOpposite="#//StBaseNode/parent"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="nodeSources" upperBound="-1"
eType="#//StTokenSource"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StToken" eSuperTypes="#//StBaseNode">
<eStructuralFeatures xsi:type="ecore:EReference" name="coordinate" eType="#//StCoordinate"
containment="true" eOpposite="#//StCoordinate/owner"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="tokenType" lowerBound="1"
eType="#//StTokenType"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="image" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="originalNode" eType="#//StBaseNode"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="tokenSource" lowerBound="1"
eType="#//StTokenSource">
<eAnnotations source="teneo.jpa">
<details key="value" value="@ManyToOne(cascade={PERSIST})"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="formattingType" lowerBound="1"
eType="#//StFormattingType"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="nonRegulars" upperBound="-1"
eType="#//StNonRegular" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="StTokenType">
<eLiterals name="Regular"/>
<eLiterals name="Special" value="1"/>
<eLiterals name="EOF" value="2"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StCoordinate">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="offset" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="length" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//StToken"
eOpposite="#//StToken/coordinate"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StTokenSource">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="uriString" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="tabSize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="StFormattingType">
<eLiterals name="None"/>
<eLiterals name="IndentOnly" value="1"/>
<eLiterals name="FormatBefore" value="2"/>
<eLiterals name="FormatAfter" value="3" literal=""/>
<eLiterals name="Full" value="4"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StNonRegular">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nonRegularType" lowerBound="1"
eType="#//StNonRegularType"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="special" eType="#//StToken"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="freeNode" eType="#//StInterpretationContext"
containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="StNonRegularType">
<eLiterals name="Special"/>
<eLiterals name="FreeNode" value="1"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="StConcreteNode" eSuperTypes="#//StBaseNode">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="concreteId" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
</ecore:EPackage>

--------------090407090607000900090503--
Re: [Teneo] Not-null property references a null value [message #609364 is a reply to message #92031] Tue, 31 July 2007 00:49 Go to previous message
Alain Picard is currently offline Alain PicardFriend
Messages: 253
Registered: July 2009
Senior Member
Martin,

After not being able to generate the mapping and constantly getting the error mentioned earlier, I decided to switch to use a joined
strategy.

Well, I can now successfully save a model instance to the database.

That being said, I am just facing more issues.

First, off if you look at the ecore that I submitted, some columns are of type EEnums. When looking at the database, those enums are
not mapped as table. Looking at previous post, and at bug 182825 and at the default for enumerated columns being ordinal (9.1.21)
then how do I get the extra tables generated and the ordinal values saved instead of the text value in a standard varchar column.

2nd, I am trying to find the best and most efficient way to "initialize" the HbDataStore.

I have tried to set the USE_MAPPING_FILE property, only to get exception "org.hibernate.hql.ast.QuerySyntaxException: StTreeRoot is
not mapped, etc. I found a post of March 27 covering this issue, but here is what I get in my log:
DEBUG [30 Jul 2007 19:43] HbSessionDataStore.java: 156 : Searching hbm files in class paths of epackages
DEBUG [30 Jul 2007 19:43] StoreUtil.java: 514 : >>>> Building or descriptor file List
DEBUG [30 Jul 2007 19:43] StoreUtil.java: 528 : Try path: ;hibernate.hbm.xml
and then it moves on. I have tried to put the hibernate.hbm.xml file in the classpath (beside log4j.properties), at the root, in the
package directory. When comparing with the above mentioned post, I don't see any other try path listed or !found anywhere. Any clue?

Next, I have set the UPDATE_SCHEMA to false, to try to speed up the initialization (once the schema is stable, I believe that should
be the standard way to go). Anyway, I now get the following after executing a query:
org.hibernate.exception.SQLGrammarException: could not load an entity: [StInterpretationContext#1]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1874)
at org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:48)
at org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:42)
at org.hibernate.persister.entity.AbstractEntityPersister.load( AbstractEntityPersister.java:3042)
at org.hibernate.event.def.DefaultLoadEventListener.loadFromDat asource(DefaultLoadEventListener.java:395)
at org.hibernate.event.def.DefaultLoadEventListener.doLoad(Defa ultLoadEventListener.java:375)
at org.hibernate.event.def.DefaultLoadEventListener.load(Defaul tLoadEventListener.java:139)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad (DefaultLoadEventListener.java:179)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(Defa ultLoadEventListener.java:103)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878 )
at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java :846)
at org.hibernate.type.EntityType.resolveIdentifier(EntityType.j ava:557)
at org.hibernate.type.EntityType.resolve(EntityType.java:379)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:116)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:854)
at org.hibernate.loader.Loader.doQuery(Loader.java:729)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2220)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 78)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at test.TestSTM.main(TestSTM.java:100)
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'strootnode2_.concreteid' in 'field list'
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936 )
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedSta tement.java:1268)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatem ent.java:1403)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc her.java:186)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
at org.hibernate.loader.Loader.doQuery(Loader.java:674)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
... 25 more
this does not occur if the option is not specified. Any idea why this is happening?

At last, what would be your most efficient "initialization" routine for HbDataStore. Do you need to set EPackage every time? etc.

Thanks again for all your help. We're slowly but surely getting there.

Alain


Martin Taal wrote:
> Hi Alain,
> The following happens. The StTokenImpl has a many-to-one reference to
> the StTokenSourceImpl. Before saving the StTokenImpl it nullifies the
> reference to the StTokenSourceImpl because StTokenSourceImpl is not yet
> saved in the db (this nullifying does not occur in the object but in a
> separate array of values kept by hibernate).
> This can be repaired by first saving StTokenSourceImpl or by setting a
> cascade annotation on the ereference (I tried the last and it seemed to
> work, see the attached ecore).
>
> gr. Martin
>
> Alain Picard wrote:
>> Oops, here is the attachment
>>
>> Alain
>
>
>
> ------------------------------------------------------------ ------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="STM_MetaModel"
> nsURI="http://com.castortech.stm" nsPrefix="STM_MetaModel">
> <eClassifiers xsi:type="ecore:EClass" name="StTreeRoot">
> <eStructuralFeatures xsi:type="ecore:EReference" name="sources" lowerBound="1"
> upperBound="-1" eType="#//StTokenSource" containment="true"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="rootInterpreter" lowerBound="1"
> eType="#//StInterpretationContext" containment="true"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StInterpretationContext">
> <eStructuralFeatures xsi:type="ecore:EReference" name="mainTokenSource" lowerBound="1"
> eType="#//StTokenSource"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="root" lowerBound="1" eType="#//StRootNode"
> containment="true"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="interpreterId" lowerBound="1"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StRootNode" eSuperTypes="#//StConcreteNode"/>
> <eClassifiers xsi:type="ecore:EClass" name="StBaseNode">
> <eStructuralFeatures xsi:type="ecore:EReference" name="parent" eType="#//StBaseNode"
> eOpposite="#//StBaseNode/children"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
> eType="#//StBaseNode" containment="true" eOpposite="#//StBaseNode/parent"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="nodeSources" upperBound="-1"
> eType="#//StTokenSource"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StToken" eSuperTypes="#//StBaseNode">
> <eStructuralFeatures xsi:type="ecore:EReference" name="coordinate" eType="#//StCoordinate"
> containment="true" eOpposite="#//StCoordinate/owner"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tokenType" lowerBound="1"
> eType="#//StTokenType"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="image" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="originalNode" eType="#//StBaseNode"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="tokenSource" lowerBound="1"
> eType="#//StTokenSource">
> <eAnnotations source="teneo.jpa">
> <details key="value" value="@ManyToOne(cascade={PERSIST})"/>
> </eAnnotations>
> </eStructuralFeatures>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="formattingType" lowerBound="1"
> eType="#//StFormattingType"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="nonRegulars" upperBound="-1"
> eType="#//StNonRegular" containment="true"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EEnum" name="StTokenType">
> <eLiterals name="Regular"/>
> <eLiterals name="Special" value="1"/>
> <eLiterals name="EOF" value="2"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StCoordinate">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="offset" lowerBound="1"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="length" lowerBound="1"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//StToken"
> eOpposite="#//StToken/coordinate"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StTokenSource">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="uriString" lowerBound="1"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tabSize" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EEnum" name="StFormattingType">
> <eLiterals name="None"/>
> <eLiterals name="IndentOnly" value="1"/>
> <eLiterals name="FormatBefore" value="2"/>
> <eLiterals name="FormatAfter" value="3" literal=""/>
> <eLiterals name="Full" value="4"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StNonRegular">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="nonRegularType" lowerBound="1"
> eType="#//StNonRegularType"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="special" eType="#//StToken"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="freeNode" eType="#//StInterpretationContext"
> containment="true"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EEnum" name="StNonRegularType">
> <eLiterals name="Special"/>
> <eLiterals name="FreeNode" value="1"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="StConcreteNode" eSuperTypes="#//StBaseNode">
> <eStructuralFeatures xsi:type="ecore:EAttribute" name="concreteId" lowerBound="1"
> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eClassifiers>
> </ecore:EPackage>
Re: [Teneo] Not-null property references a null value [message #609367 is a reply to message #92077] Tue, 31 July 2007 01:08 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Alain,
Which bug do you mean (182825 seemed to point to another bug)?

Not finding the hbm file can be caused by this issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=196535

This was solved in the build of 18 july. Which build are you using?

The other exception you get is this:
> Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
> Unknown column 'strootnode2_.concreteid' in 'field list'

Normally this occurs because the db schema is not in sync with the (in-memory) mapping. Does this
maybe apply to your case?
Other than this I have no real idea why this exception occurs when update_schema is false.

Yes the epackages are required for the initialization. The hbdatastore does some computation which
is not required for all users (adds econtainer mapping and computes referer relations). But overall
I don't think that this takes much time (I have never done performance measurements on that though).

Setting the update_schema to false surely saves time and it is the only option I know for getting
better start up times.

gr. Martin

Alain Picard wrote:
> Martin,
>
> After not being able to generate the mapping and constantly getting the
> error mentioned earlier, I decided to switch to use a joined strategy.
>
> Well, I can now successfully save a model instance to the database.
>
> That being said, I am just facing more issues.
>
> First, off if you look at the ecore that I submitted, some columns are
> of type EEnums. When looking at the database, those enums are not mapped
> as table. Looking at previous post, and at bug 182825 and at the default
> for enumerated columns being ordinal (9.1.21) then how do I get the
> extra tables generated and the ordinal values saved instead of the text
> value in a standard varchar column.
>
> 2nd, I am trying to find the best and most efficient way to "initialize"
> the HbDataStore.
>
> I have tried to set the USE_MAPPING_FILE property, only to get exception
> "org.hibernate.hql.ast.QuerySyntaxException: StTreeRoot is not mapped,
> etc. I found a post of March 27 covering this issue, but here is what I
> get in my log:
> DEBUG [30 Jul 2007 19:43] HbSessionDataStore.java: 156 : Searching
> hbm files in class paths of epackages
> DEBUG [30 Jul 2007 19:43] StoreUtil.java: 514 : >>>> Building or
> descriptor file List
> DEBUG [30 Jul 2007 19:43] StoreUtil.java: 528 : Try path:
> ;hibernate.hbm.xml
> and then it moves on. I have tried to put the hibernate.hbm.xml file in
> the classpath (beside log4j.properties), at the root, in the package
> directory. When comparing with the above mentioned post, I don't see any
> other try path listed or !found anywhere. Any clue?
>
> Next, I have set the UPDATE_SCHEMA to false, to try to speed up the
> initialization (once the schema is stable, I believe that should be the
> standard way to go). Anyway, I now get the following after executing a
> query:
> org.hibernate.exception.SQLGrammarException: could not load an
> entity: [StInterpretationContext#1]
> at
> org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
>
> at
> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
>
> at org.hibernate.loader.Loader.loadEntity(Loader.java:1874)
> at
> org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:48)
>
> at
> org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:42)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.load( AbstractEntityPersister.java:3042)
>
> at
> org.hibernate.event.def.DefaultLoadEventListener.loadFromDat asource(DefaultLoadEventListener.java:395)
>
> at
> org.hibernate.event.def.DefaultLoadEventListener.doLoad(Defa ultLoadEventListener.java:375)
>
> at
> org.hibernate.event.def.DefaultLoadEventListener.load(Defaul tLoadEventListener.java:139)
>
> at
> org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad (DefaultLoadEventListener.java:179)
>
> at
> org.hibernate.event.def.DefaultLoadEventListener.onLoad(Defa ultLoadEventListener.java:103)
>
> at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878 )
> at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java :846)
> at org.hibernate.type.EntityType.resolveIdentifier(EntityType.j ava:557)
> at org.hibernate.type.EntityType.resolve(EntityType.java:379)
> at
> org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:116)
> at
> org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:854)
>
> at org.hibernate.loader.Loader.doQuery(Loader.java:729)
> at
> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
>
> at org.hibernate.loader.Loader.doList(Loader.java:2220)
> at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2104)
> at org.hibernate.loader.Loader.list(Loader.java:2099)
> at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 78)
> at
> org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
>
> at
> org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
> at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
> at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
> at test.TestSTM.main(TestSTM.java:100)
> Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
> Unknown column 'strootnode2_.concreteid' in 'field list'
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936 )
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
> at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
> at
> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedSta tement.java:1268)
>
> at
> com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatem ent.java:1403)
> at
> org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc her.java:186)
> at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
> at org.hibernate.loader.Loader.doQuery(Loader.java:674)
> at
> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
>
> at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
> ... 25 more
> this does not occur if the option is not specified. Any idea why this is
> happening?
>
> At last, what would be your most efficient "initialization" routine for
> HbDataStore. Do you need to set EPackage every time? etc.
>
> Thanks again for all your help. We're slowly but surely getting there.
>
> Alain
>
>
> Martin Taal wrote:
>> Hi Alain,
>> The following happens. The StTokenImpl has a many-to-one reference to
>> the StTokenSourceImpl. Before saving the StTokenImpl it nullifies the
>> reference to the StTokenSourceImpl because StTokenSourceImpl is not
>> yet saved in the db (this nullifying does not occur in the object but
>> in a separate array of values kept by hibernate).
>> This can be repaired by first saving StTokenSourceImpl or by setting a
>> cascade annotation on the ereference (I tried the last and it seemed
>> to work, see the attached ecore).
>>
>> gr. Martin
>>
>> Alain Picard wrote:
>>> Oops, here is the attachment
>>>
>>> Alain
>>
>>
>>
>> ------------------------------------------------------------ ------------
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <ecore:EPackage xmi:version="2.0"
>> xmlns:xmi="http://www.omg.org/XMI"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>> name="STM_MetaModel"
>> nsURI="http://com.castortech.stm" nsPrefix="STM_MetaModel">
>> <eClassifiers xsi:type="ecore:EClass" name="StTreeRoot">
>> <eStructuralFeatures xsi:type="ecore:EReference" name="sources"
>> lowerBound="1"
>> upperBound="-1" eType="#//StTokenSource" containment="true"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="rootInterpreter" lowerBound="1"
>> eType="#//StInterpretationContext" containment="true"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StInterpretationContext">
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="mainTokenSource" lowerBound="1"
>> eType="#//StTokenSource"/>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="root"
>> lowerBound="1" eType="#//StRootNode"
>> containment="true"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="interpreterId" lowerBound="1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StRootNode"
>> eSuperTypes="#//StConcreteNode"/>
>> <eClassifiers xsi:type="ecore:EClass" name="StBaseNode">
>> <eStructuralFeatures xsi:type="ecore:EReference" name="parent"
>> eType="#//StBaseNode"
>> eOpposite="#//StBaseNode/children"/>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="children"
>> upperBound="-1"
>> eType="#//StBaseNode" containment="true"
>> eOpposite="#//StBaseNode/parent"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="nodeSources" upperBound="-1"
>> eType="#//StTokenSource"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StToken"
>> eSuperTypes="#//StBaseNode">
>> <eStructuralFeatures xsi:type="ecore:EReference" name="coordinate"
>> eType="#//StCoordinate"
>> containment="true" eOpposite="#//StCoordinate/owner"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tokenType"
>> lowerBound="1"
>> eType="#//StTokenType"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="image"
>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind"
>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="originalNode" eType="#//StBaseNode"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="tokenSource" lowerBound="1"
>> eType="#//StTokenSource">
>> <eAnnotations source="teneo.jpa">
>> <details key="value" value="@ManyToOne(cascade={PERSIST})"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="formattingType" lowerBound="1"
>> eType="#//StFormattingType"/>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="nonRegulars" upperBound="-1"
>> eType="#//StNonRegular" containment="true"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EEnum" name="StTokenType">
>> <eLiterals name="Regular"/>
>> <eLiterals name="Special" value="1"/>
>> <eLiterals name="EOF" value="2"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StCoordinate">
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="offset"
>> lowerBound="1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="length"
>> lowerBound="1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type"
>> lowerBound="1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="owner"
>> lowerBound="1" eType="#//StToken"
>> eOpposite="#//StToken/coordinate"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StTokenSource">
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="uriString"
>> lowerBound="1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tabSize"
>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EEnum" name="StFormattingType">
>> <eLiterals name="None"/>
>> <eLiterals name="IndentOnly" value="1"/>
>> <eLiterals name="FormatBefore" value="2"/>
>> <eLiterals name="FormatAfter" value="3" literal=""/>
>> <eLiterals name="Full" value="4"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StNonRegular">
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="nonRegularType" lowerBound="1"
>> eType="#//StNonRegularType"/>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="special"
>> eType="#//StToken"/>
>> <eStructuralFeatures xsi:type="ecore:EReference" name="freeNode"
>> eType="#//StInterpretationContext"
>> containment="true"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EEnum" name="StNonRegularType">
>> <eLiterals name="Special"/>
>> <eLiterals name="FreeNode" value="1"/>
>> </eClassifiers>
>> <eClassifiers xsi:type="ecore:EClass" name="StConcreteNode"
>> eSuperTypes="#//StBaseNode">
>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="concreteId"
>> lowerBound="1"
>> eType="ecore:EDataType
>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>> </eClassifiers>
>> </ecore:EPackage>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Not-null property references a null value [message #609372 is a reply to message #92093] Tue, 31 July 2007 02:33 Go to previous message
Alain Picard is currently offline Alain PicardFriend
Messages: 253
Registered: July 2009
Senior Member
Martin,

I was using the version from July 12. After upgrading the version from the 21st, now both of my issue with the options have melted
away. Great news.

Now on the remaining point from my previous post:
If you look at the ecore that I submitted, some columns are of type EEnums. When looking at the database, those enums are not
mapped as table. Looking at previous post, and at bug 182825 and at the default for enumerated columns being ordinal (9.1.21) then
how do I get the extra tables generated and the ordinal values saved instead of the text value in a standard varchar column.

Thanks,
Alain


Martin Taal wrote:
> Alain,
> Which bug do you mean (182825 seemed to point to another bug)?
>
> Not finding the hbm file can be caused by this issue:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=196535
>
> This was solved in the build of 18 july. Which build are you using?
>
> The other exception you get is this:
> > Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
> > Unknown column 'strootnode2_.concreteid' in 'field list'
>
> Normally this occurs because the db schema is not in sync with the
> (in-memory) mapping. Does this maybe apply to your case?
> Other than this I have no real idea why this exception occurs when
> update_schema is false.
>
> Yes the epackages are required for the initialization. The hbdatastore
> does some computation which is not required for all users (adds
> econtainer mapping and computes referer relations). But overall I don't
> think that this takes much time (I have never done performance
> measurements on that though).
>
> Setting the update_schema to false surely saves time and it is the only
> option I know for getting better start up times.
>
> gr. Martin
>
> Alain Picard wrote:
>> Martin,
>>
>> After not being able to generate the mapping and constantly getting
>> the error mentioned earlier, I decided to switch to use a joined
>> strategy.
>>
>> Well, I can now successfully save a model instance to the database.
>>
>> That being said, I am just facing more issues.
>>
>> First, off if you look at the ecore that I submitted, some columns are
>> of type EEnums. When looking at the database, those enums are not
>> mapped as table. Looking at previous post, and at bug 182825 and at
>> the default for enumerated columns being ordinal (9.1.21) then how do
>> I get the extra tables generated and the ordinal values saved instead
>> of the text value in a standard varchar column.
>>
>> 2nd, I am trying to find the best and most efficient way to
>> "initialize" the HbDataStore.
>>
>> I have tried to set the USE_MAPPING_FILE property, only to get
>> exception "org.hibernate.hql.ast.QuerySyntaxException: StTreeRoot is
>> not mapped, etc. I found a post of March 27 covering this issue, but
>> here is what I get in my log:
>> DEBUG [30 Jul 2007 19:43] HbSessionDataStore.java: 156 : Searching
>> hbm files in class paths of epackages
>> DEBUG [30 Jul 2007 19:43] StoreUtil.java: 514 : >>>> Building or
>> descriptor file List
>> DEBUG [30 Jul 2007 19:43] StoreUtil.java: 528 : Try path:
>> ;hibernate.hbm.xml
>> and then it moves on. I have tried to put the hibernate.hbm.xml file
>> in the classpath (beside log4j.properties), at the root, in the
>> package directory. When comparing with the above mentioned post, I
>> don't see any other try path listed or !found anywhere. Any clue?
>>
>> Next, I have set the UPDATE_SCHEMA to false, to try to speed up the
>> initialization (once the schema is stable, I believe that should be
>> the standard way to go). Anyway, I now get the following after
>> executing a query:
>> org.hibernate.exception.SQLGrammarException: could not load an
>> entity: [StInterpretationContext#1]
>> at
>> org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
>>
>> at
>> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
>>
>> at org.hibernate.loader.Loader.loadEntity(Loader.java:1874)
>> at
>> org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:48)
>>
>> at
>> org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:42)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.load( AbstractEntityPersister.java:3042)
>>
>> at
>> org.hibernate.event.def.DefaultLoadEventListener.loadFromDat asource(DefaultLoadEventListener.java:395)
>>
>> at
>> org.hibernate.event.def.DefaultLoadEventListener.doLoad(Defa ultLoadEventListener.java:375)
>>
>> at
>> org.hibernate.event.def.DefaultLoadEventListener.load(Defaul tLoadEventListener.java:139)
>>
>> at
>> org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad (DefaultLoadEventListener.java:179)
>>
>> at
>> org.hibernate.event.def.DefaultLoadEventListener.onLoad(Defa ultLoadEventListener.java:103)
>>
>> at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878 )
>> at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java :846)
>> at
>> org.hibernate.type.EntityType.resolveIdentifier(EntityType.j ava:557)
>> at org.hibernate.type.EntityType.resolve(EntityType.java:379)
>> at
>> org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:116)
>> at
>> org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:854)
>>
>> at org.hibernate.loader.Loader.doQuery(Loader.java:729)
>> at
>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
>>
>> at org.hibernate.loader.Loader.doList(Loader.java:2220)
>> at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2104)
>> at org.hibernate.loader.Loader.list(Loader.java:2099)
>> at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 78)
>> at
>> org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
>>
>> at
>> org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
>>
>> at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
>> at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
>> at test.TestSTM.main(TestSTM.java:100)
>> Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
>> Unknown column 'strootnode2_.concreteid' in 'field list'
>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936 )
>> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
>> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
>> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
>> at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
>> at
>> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedSta tement.java:1268)
>>
>> at
>> com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatem ent.java:1403)
>>
>> at
>> org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc her.java:186)
>> at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
>> at org.hibernate.loader.Loader.doQuery(Loader.java:674)
>> at
>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
>>
>> at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
>> ... 25 more
>> this does not occur if the option is not specified. Any idea why this
>> is happening?
>>
>> At last, what would be your most efficient "initialization" routine
>> for HbDataStore. Do you need to set EPackage every time? etc.
>>
>> Thanks again for all your help. We're slowly but surely getting there.
>>
>> Alain
>>
>>
>> Martin Taal wrote:
>>> Hi Alain,
>>> The following happens. The StTokenImpl has a many-to-one reference to
>>> the StTokenSourceImpl. Before saving the StTokenImpl it nullifies the
>>> reference to the StTokenSourceImpl because StTokenSourceImpl is not
>>> yet saved in the db (this nullifying does not occur in the object but
>>> in a separate array of values kept by hibernate).
>>> This can be repaired by first saving StTokenSourceImpl or by setting
>>> a cascade annotation on the ereference (I tried the last and it
>>> seemed to work, see the attached ecore).
>>>
>>> gr. Martin
>>>
>>> Alain Picard wrote:
>>>> Oops, here is the attachment
>>>>
>>>> Alain
>>>
>>>
>>>
>>> ------------------------------------------------------------ ------------
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <ecore:EPackage xmi:version="2.0"
>>> xmlns:xmi="http://www.omg.org/XMI"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>>> name="STM_MetaModel"
>>> nsURI="http://com.castortech.stm" nsPrefix="STM_MetaModel">
>>> <eClassifiers xsi:type="ecore:EClass" name="StTreeRoot">
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="sources"
>>> lowerBound="1"
>>> upperBound="-1" eType="#//StTokenSource" containment="true"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="rootInterpreter" lowerBound="1"
>>> eType="#//StInterpretationContext" containment="true"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StInterpretationContext">
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="mainTokenSource" lowerBound="1"
>>> eType="#//StTokenSource"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="root"
>>> lowerBound="1" eType="#//StRootNode"
>>> containment="true"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>> name="interpreterId" lowerBound="1"
>>> eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StRootNode"
>>> eSuperTypes="#//StConcreteNode"/>
>>> <eClassifiers xsi:type="ecore:EClass" name="StBaseNode">
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="parent"
>>> eType="#//StBaseNode"
>>> eOpposite="#//StBaseNode/children"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="children"
>>> upperBound="-1"
>>> eType="#//StBaseNode" containment="true"
>>> eOpposite="#//StBaseNode/parent"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="nodeSources" upperBound="-1"
>>> eType="#//StTokenSource"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StToken"
>>> eSuperTypes="#//StBaseNode">
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="coordinate" eType="#//StCoordinate"
>>> containment="true" eOpposite="#//StCoordinate/owner"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tokenType"
>>> lowerBound="1"
>>> eType="#//StTokenType"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="image"
>>> eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind"
>>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="originalNode" eType="#//StBaseNode"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="tokenSource" lowerBound="1"
>>> eType="#//StTokenSource">
>>> <eAnnotations source="teneo.jpa">
>>> <details key="value" value="@ManyToOne(cascade={PERSIST})"/>
>>> </eAnnotations>
>>> </eStructuralFeatures>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>> name="formattingType" lowerBound="1"
>>> eType="#//StFormattingType"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>> name="nonRegulars" upperBound="-1"
>>> eType="#//StNonRegular" containment="true"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EEnum" name="StTokenType">
>>> <eLiterals name="Regular"/>
>>> <eLiterals name="Special" value="1"/>
>>> <eLiterals name="EOF" value="2"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StCoordinate">
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="offset"
>>> lowerBound="1"
>>> eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="length"
>>> lowerBound="1"
>>> eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type"
>>> lowerBound="1" eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="owner"
>>> lowerBound="1" eType="#//StToken"
>>> eOpposite="#//StToken/coordinate"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StTokenSource">
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="uriString"
>>> lowerBound="1"
>>> eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tabSize"
>>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EEnum" name="StFormattingType">
>>> <eLiterals name="None"/>
>>> <eLiterals name="IndentOnly" value="1"/>
>>> <eLiterals name="FormatBefore" value="2"/>
>>> <eLiterals name="FormatAfter" value="3" literal=""/>
>>> <eLiterals name="Full" value="4"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StNonRegular">
>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>> name="nonRegularType" lowerBound="1"
>>> eType="#//StNonRegularType"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="special"
>>> eType="#//StToken"/>
>>> <eStructuralFeatures xsi:type="ecore:EReference" name="freeNode"
>>> eType="#//StInterpretationContext"
>>> containment="true"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EEnum" name="StNonRegularType">
>>> <eLiterals name="Special"/>
>>> <eLiterals name="FreeNode" value="1"/>
>>> </eClassifiers>
>>> <eClassifiers xsi:type="ecore:EClass" name="StConcreteNode"
>>> eSuperTypes="#//StBaseNode">
>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>> name="concreteId" lowerBound="1"
>>> eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>> </eClassifiers>
>>> </ecore:EPackage>
>
>
Re: [Teneo] Not-null property references a null value [message #609384 is a reply to message #92110] Tue, 31 July 2007 12:09 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Alain,
Yes it is true that the current default is String and not Ordinal. Overall in my view String is
better (at least it was for me). You can change this behavior by setting an @Enumerated annotation
in the edatatype of the enum.
A global option can also be of use here, please enter a bugzilla if you find that better.

I am not sure why you want to have the enumerated efeature stored in a separate table. Is it a list
of enumerates?

gr. Martin

Alain Picard wrote:
> Martin,
>
> I was using the version from July 12. After upgrading the version from
> the 21st, now both of my issue with the options have melted away. Great
> news.
>
> Now on the remaining point from my previous post:
> If you look at the ecore that I submitted, some columns are of type
> EEnums. When looking at the database, those enums are not mapped as
> table. Looking at previous post, and at bug 182825 and at the default
> for enumerated columns being ordinal (9.1.21) then how do I get the
> extra tables generated and the ordinal values saved instead of the text
> value in a standard varchar column.
>
> Thanks,
> Alain
>
>
> Martin Taal wrote:
>> Alain,
>> Which bug do you mean (182825 seemed to point to another bug)?
>>
>> Not finding the hbm file can be caused by this issue:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=196535
>>
>> This was solved in the build of 18 july. Which build are you using?
>>
>> The other exception you get is this:
>> > Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
>> > Unknown column 'strootnode2_.concreteid' in 'field list'
>>
>> Normally this occurs because the db schema is not in sync with the
>> (in-memory) mapping. Does this maybe apply to your case?
>> Other than this I have no real idea why this exception occurs when
>> update_schema is false.
>>
>> Yes the epackages are required for the initialization. The hbdatastore
>> does some computation which is not required for all users (adds
>> econtainer mapping and computes referer relations). But overall I
>> don't think that this takes much time (I have never done performance
>> measurements on that though).
>>
>> Setting the update_schema to false surely saves time and it is the
>> only option I know for getting better start up times.
>>
>> gr. Martin
>>
>> Alain Picard wrote:
>>> Martin,
>>>
>>> After not being able to generate the mapping and constantly getting
>>> the error mentioned earlier, I decided to switch to use a joined
>>> strategy.
>>>
>>> Well, I can now successfully save a model instance to the database.
>>>
>>> That being said, I am just facing more issues.
>>>
>>> First, off if you look at the ecore that I submitted, some columns
>>> are of type EEnums. When looking at the database, those enums are not
>>> mapped as table. Looking at previous post, and at bug 182825 and at
>>> the default for enumerated columns being ordinal (9.1.21) then how do
>>> I get the extra tables generated and the ordinal values saved instead
>>> of the text value in a standard varchar column.
>>>
>>> 2nd, I am trying to find the best and most efficient way to
>>> "initialize" the HbDataStore.
>>>
>>> I have tried to set the USE_MAPPING_FILE property, only to get
>>> exception "org.hibernate.hql.ast.QuerySyntaxException: StTreeRoot is
>>> not mapped, etc. I found a post of March 27 covering this issue, but
>>> here is what I get in my log:
>>> DEBUG [30 Jul 2007 19:43] HbSessionDataStore.java: 156 : Searching
>>> hbm files in class paths of epackages
>>> DEBUG [30 Jul 2007 19:43] StoreUtil.java: 514 : >>>> Building or
>>> descriptor file List
>>> DEBUG [30 Jul 2007 19:43] StoreUtil.java: 528 : Try path:
>>> ;hibernate.hbm.xml
>>> and then it moves on. I have tried to put the hibernate.hbm.xml file
>>> in the classpath (beside log4j.properties), at the root, in the
>>> package directory. When comparing with the above mentioned post, I
>>> don't see any other try path listed or !found anywhere. Any clue?
>>>
>>> Next, I have set the UPDATE_SCHEMA to false, to try to speed up the
>>> initialization (once the schema is stable, I believe that should be
>>> the standard way to go). Anyway, I now get the following after
>>> executing a query:
>>> org.hibernate.exception.SQLGrammarException: could not load an
>>> entity: [StInterpretationContext#1]
>>> at
>>> org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
>>>
>>> at
>>> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
>>>
>>> at org.hibernate.loader.Loader.loadEntity(Loader.java:1874)
>>> at
>>> org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:48)
>>>
>>> at
>>> org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:42)
>>>
>>> at
>>> org.hibernate.persister.entity.AbstractEntityPersister.load( AbstractEntityPersister.java:3042)
>>>
>>> at
>>> org.hibernate.event.def.DefaultLoadEventListener.loadFromDat asource(DefaultLoadEventListener.java:395)
>>>
>>> at
>>> org.hibernate.event.def.DefaultLoadEventListener.doLoad(Defa ultLoadEventListener.java:375)
>>>
>>> at
>>> org.hibernate.event.def.DefaultLoadEventListener.load(Defaul tLoadEventListener.java:139)
>>>
>>> at
>>> org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad (DefaultLoadEventListener.java:179)
>>>
>>> at
>>> org.hibernate.event.def.DefaultLoadEventListener.onLoad(Defa ultLoadEventListener.java:103)
>>>
>>> at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878 )
>>> at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java :846)
>>> at
>>> org.hibernate.type.EntityType.resolveIdentifier(EntityType.j ava:557)
>>> at org.hibernate.type.EntityType.resolve(EntityType.java:379)
>>> at
>>> org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:116)
>>>
>>> at
>>> org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:854)
>>>
>>> at org.hibernate.loader.Loader.doQuery(Loader.java:729)
>>> at
>>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
>>>
>>> at org.hibernate.loader.Loader.doList(Loader.java:2220)
>>> at
>>> org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2104)
>>> at org.hibernate.loader.Loader.list(Loader.java:2099)
>>> at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 78)
>>> at
>>> org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
>>>
>>> at
>>> org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
>>>
>>> at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
>>> at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
>>> at test.TestSTM.main(TestSTM.java:100)
>>> Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
>>> Unknown column 'strootnode2_.concreteid' in 'field list'
>>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936 )
>>> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
>>> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
>>> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
>>> at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
>>> at
>>> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedSta tement.java:1268)
>>>
>>> at
>>> com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatem ent.java:1403)
>>>
>>> at
>>> org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc her.java:186)
>>>
>>> at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
>>> at org.hibernate.loader.Loader.doQuery(Loader.java:674)
>>> at
>>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
>>>
>>> at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
>>> ... 25 more
>>> this does not occur if the option is not specified. Any idea why this
>>> is happening?
>>>
>>> At last, what would be your most efficient "initialization" routine
>>> for HbDataStore. Do you need to set EPackage every time? etc.
>>>
>>> Thanks again for all your help. We're slowly but surely getting there.
>>>
>>> Alain
>>>
>>>
>>> Martin Taal wrote:
>>>> Hi Alain,
>>>> The following happens. The StTokenImpl has a many-to-one reference
>>>> to the StTokenSourceImpl. Before saving the StTokenImpl it nullifies
>>>> the reference to the StTokenSourceImpl because StTokenSourceImpl is
>>>> not yet saved in the db (this nullifying does not occur in the
>>>> object but in a separate array of values kept by hibernate).
>>>> This can be repaired by first saving StTokenSourceImpl or by setting
>>>> a cascade annotation on the ereference (I tried the last and it
>>>> seemed to work, see the attached ecore).
>>>>
>>>> gr. Martin
>>>>
>>>> Alain Picard wrote:
>>>>> Oops, here is the attachment
>>>>>
>>>>> Alain
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------ ------------
>>>>
>>>>e
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <ecore:EPackage xmi:version="2.0"
>>>> xmlns:xmi="http://www.omg.org/XMI"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>>>> name="STM_MetaModel"
>>>> nsURI="http://com.castortech.stm" nsPrefix="STM_MetaModel">
>>>> <eClassifiers xsi:type="ecore:EClass" name="StTreeRoot">
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="sources"
>>>> lowerBound="1"
>>>> upperBound="-1" eType="#//StTokenSource" containment="true"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="rootInterpreter" lowerBound="1"
>>>> eType="#//StInterpretationContext" containment="true"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StInterpretationContext">
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="mainTokenSource" lowerBound="1"
>>>> eType="#//StTokenSource"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="root"
>>>> lowerBound="1" eType="#//StRootNode"
>>>> containment="true"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="interpreterId" lowerBound="1"
>>>> eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StRootNode"
>>>> eSuperTypes="#//StConcreteNode"/>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StBaseNode">
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="parent"
>>>> eType="#//StBaseNode"
>>>> eOpposite="#//StBaseNode/children"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="children"
>>>> upperBound="-1"
>>>> eType="#//StBaseNode" containment="true"
>>>> eOpposite="#//StBaseNode/parent"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="nodeSources" upperBound="-1"
>>>> eType="#//StTokenSource"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StToken"
>>>> eSuperTypes="#//StBaseNode">
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="coordinate" eType="#//StCoordinate"
>>>> containment="true" eOpposite="#//StCoordinate/owner"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="tokenType" lowerBound="1"
>>>> eType="#//StTokenType"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="image"
>>>> eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind"
>>>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="originalNode" eType="#//StBaseNode"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="tokenSource" lowerBound="1"
>>>> eType="#//StTokenSource">
>>>> <eAnnotations source="teneo.jpa">
>>>> <details key="value" value="@ManyToOne(cascade={PERSIST})"/>
>>>> </eAnnotations>
>>>> </eStructuralFeatures>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="formattingType" lowerBound="1"
>>>> eType="#//StFormattingType"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference"
>>>> name="nonRegulars" upperBound="-1"
>>>> eType="#//StNonRegular" containment="true"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EEnum" name="StTokenType">
>>>> <eLiterals name="Regular"/>
>>>> <eLiterals name="Special" value="1"/>
>>>> <eLiterals name="EOF" value="2"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StCoordinate">
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="offset"
>>>> lowerBound="1"
>>>> eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="length"
>>>> lowerBound="1"
>>>> eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="type"
>>>> lowerBound="1" eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="owner"
>>>> lowerBound="1" eType="#//StToken"
>>>> eOpposite="#//StToken/coordinate"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StTokenSource">
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="uriString" lowerBound="1"
>>>> eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute" name="tabSize"
>>>> eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EEnum" name="StFormattingType">
>>>> <eLiterals name="None"/>
>>>> <eLiterals name="IndentOnly" value="1"/>
>>>> <eLiterals name="FormatBefore" value="2"/>
>>>> <eLiterals name="FormatAfter" value="3" literal=""/>
>>>> <eLiterals name="Full" value="4"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StNonRegular">
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="nonRegularType" lowerBound="1"
>>>> eType="#//StNonRegularType"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="special"
>>>> eType="#//StToken"/>
>>>> <eStructuralFeatures xsi:type="ecore:EReference" name="freeNode"
>>>> eType="#//StInterpretationContext"
>>>> containment="true"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EEnum" name="StNonRegularType">
>>>> <eLiterals name="Special"/>
>>>> <eLiterals name="FreeNode" value="1"/>
>>>> </eClassifiers>
>>>> <eClassifiers xsi:type="ecore:EClass" name="StConcreteNode"
>>>> eSuperTypes="#//StBaseNode">
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="concreteId" lowerBound="1"
>>>> eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2002/Ecore#//EString"/>
>>>> </eClassifiers>
>>>> </ecore:EPackage>
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] Not-null property references a null value [message #609398 is a reply to message #92155] Tue, 31 July 2007 19:09 Go to previous message
Alain Picard is currently offline Alain PicardFriend
Messages: 253
Registered: July 2009
Senior Member
Martin,

Thanks I have successfully added the @Enumerated(ORDINAL) and that worked.

I was kind of expecting the enumerated efeature stored in a separate table to do like Michael Kanaley mentioned a few months back. I
also felt that from a pure database perspective that made the stored model "self-sufficient" and complete, without having to rely on
external data if someone wanted to work with the database only.

Obviously, when dealing with the contents with EMF/Teneo, it really doesn't make much of a difference.

Cheers
Alain
Re: [Teneo] Not-null property references a null value [message #609400 is a reply to message #92238] Tue, 31 July 2007 20:31 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Alain,
What I remember from Michael's issue was that it was a list of enumerates. For that case it is
logical to have a separate table (each record in the table is then one enum instance of the list).
For single value fields a column is enough.

gr. Martin

Alain Picard wrote:
> Martin,
>
> Thanks I have successfully added the @Enumerated(ORDINAL) and that worked.
>
> I was kind of expecting the enumerated efeature stored in a separate
> table to do like Michael Kanaley mentioned a few months back. I also
> felt that from a pure database perspective that made the stored model
> "self-sufficient" and complete, without having to rely on external data
> if someone wanted to work with the database only.
>
> Obviously, when dealing with the contents with EMF/Teneo, it really
> doesn't make much of a difference.
>
> Cheers
> Alain


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:[Announce] OCL Tools component proposal
Next Topic:Teneo: tries to map <version.../> element in hbm to EStructuralFeature in HbUtil.getPropertyAc
Goto Forum:
  


Current Time: Fri Aug 12 16:19:14 GMT 2022

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

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

Back to the top