On Thursday, May 22, 2003, at 03:01 PM, johannes schmidt wrote:
>>> {[ Adresse => (org.objectstyle.cayenne.access.ToManyList)
>>> PLZ => -956712157
>>> Name => hornsupertown
>>> ]<oid: akj.database.cayenneDataObjects.PLZ: <PLZ: -956712157>;
>>> state:
>>> committed>}
Hmm... primary key is -956712157. Do you have primary key generation
table setup per User Guide?
Anyway, this may or may not be related to the error below.. Stack trace
shows that the error occurs when trying to resolve PLZ->Address to-many
relationship. Could you send me your XML Data Map file directly. I want
to see how this particular relationship and both entities are mapped.
Andrus
>>> stack-trace:
>>>
>>> WARN DefaultOperationObserver: Query exception:
>>> org.objectstyle.cayenne.query.SelectQuery
>>>
>>> java.lang.IllegalStateException: An attempt to use uninitialized
>>> DataObjectMatchTranslator: [attributes: null, values:
>>> {PLZ=-956712157}]
>>>
>>> at
>>>
> org.objectstyle.cayenne.access.trans.DataObjectMatchTranslator.keys(Dat
> aObje
>>> ctMatchTranslator.java:135)
...
> org.objectstyle.cayenne.access.ToManyList.getObjectList(ToManyList.java
> :113)
>>>
>>> at
>>> org.objectstyle.cayenne.access.ToManyList.add(ToManyList.java:121)
>>>
>>> at
>>>
> org.objectstyle.cayenne.CayenneDataObject.addToManyTarget(CayenneDataOb
> ject.
>>> java:327)
This archive was generated by hypermail 2.0.0 : Thu May 22 2003 - 21:47:17 EDT