Ok, after Johannes sent me his data map, I figured what it is.
"adresse" DbEntity has both an attribute and a relationship called
"PLZ"! So Cayenne gets confused, leading to unpredictable and hard to
trace errors. Please rename either the attribute or relationship. On
our part, I guess we should add this validation to the modeler. I'll
open a bug for that. Very annoying error indeed!
Andrus
On Thursday, May 22, 2003, at 06:34 AM, johannes schmidt wrote:
> i'm using mysql 4.0.7-gamma-nt, jdk-version 1.4.1_02-b06,
> jdbc-driver:mysql-connector-java-3.0.6-stable-bin.jar
> that's what the object looks like after retrieving it from the
> database:
> (System.out.println)
> {[ Adresse => (org.objectstyle.cayenne.access.ToManyList)
> PLZ => -956712157
> Name => hornsupertown
> ]<oid: akj.database.cayenneDataObjects.PLZ: <PLZ: -956712157>; state:
> committed>}
>
>
> 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}]
>
This archive was generated by hypermail 2.0.0 : Sat May 24 2003 - 20:05:28 EDT