Hi Arnaud,
Checking the code I can see that the error happens due to the missing
DbRelationship for the given ObjRelationship; still looking at your map,
this doesn't seem to be the case. As I am away from my desk I can't do a
full check of your mapping for correctness.
Check a few usual suspects... Are there any warnings in the Modeler when
you save the project? Are you using the same version of Cayenne for
mapping and running the code? If you upgraded from the earlier version,
could you make sure that you save the project using the new version of the
Modeler.
If the problem persists, please open bug report, so that I can track it
when I get back from vacation.
Thanks
Andrus
>
> When we save the object < Order> we have this error ., (I think Cayenne
> not load my DB relationships ?)
>
> at
> org.objectstyle.cayenne.map.ObjRelationship.isToDependentEntity(ObjRelations
> hip.java:290)
>
> at
> org.objectstyle.cayenne.map.ObjRelationship.isSourceIndependentFromTargetCha
> nge(ObjRelationship.java:283)
>
> at
> org.objectstyle.cayenne.CayenneDataObject.validateForSave(CayenneDataObject.
> java:626)
>
> at
> org.objectstyle.cayenne.CayenneDataObject.validateForInsert(CayenneDataObjec
> t.java:674)
>
> at
> org.objectstyle.cayenne.access.ObjectStore.validateUncommittedObjects(Object
> Store.java:934)
>
> at
> org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.java:12
> 25)
>
> at
> ch.huge.risroutage.business.ColloqueDelegate.insertOrder(ColloqueDelegate.ja
> va:103)
>
> at
> ch.huge.risroutage.business.ColloqueDelegate.main(ColloqueDelegate.java:115)
>
> Exception in thread "main"
>
> We use cayenne-1.1B2,
>
> Any idea ?
>
This archive was generated by hypermail 2.0.0 : Mon Aug 16 2004 - 05:35:58 EDT