Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] single join table for mtm results in exception
[Teneo] single join table for mtm results in exception [message #604709] Thu, 12 April 2007 20:03
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member

I updated my model so all many-to-many relationships include the
annotation for setting indexed=false. The resulting database tables look
great. I loaded my data and saved into the database with no problem.

However, when I try to access objects via these single join tables I get
Hibernate exceptions that state the indexed column is NULL, etc.

The mapping file for one of these looks like...

<bag name="contacts" lazy="true"
cascade="merge,persist,save-update,lock,refresh" table="`service_contact`">
<key update="true">
<column name="`service_e_id`" not-null="true" unique="false"/>
<many-to-many entity-name="Contact" unique="false">
<column name="`contact_e_id`" not-null="true" unique="false"/>

and ....

<bag name="services" lazy="true"
cascade="merge,persist,save-update,lock,refresh" inverse="true"
<key update="true">
<column name="`contact_e_id`" not-null="true" unique="false"/>
<many-to-many entity-name="Service" unique="false">
<column name="`service_e_id`" not-null="true" unique="false"/>

Any ideas...?

Previous Topic:GMF(Callisto) 1.0.3: org.eclipse.emf.validation.ocl requires "org.eclipse.ocl.ecore" ????
Next Topic:[teneo] xsd that reference another xsd
Goto Forum:

Current Time: Fri Oct 23 12:25:59 GMT 2020

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

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

Back to the top