cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rashid Khan" <rashi...@gmail.com>
Subject CayenneModeler "To Dep PK" Checkbox problem
Date Sun, 18 Jun 2006 10:11:46 GMT
Hello there,

I am using Cayenne1.2RC1. I am facing problems with the CayenneModeler "To
Dep PK" checkbox.

I have the following database set up:

* User table
* Group table
* UserGroup table (join table: maps users to groups)

>From what I understand the way cayenne works, I have to check the "To Dep
PK" checkbox in the UserGroupArray relationship of the User db-entity (and
the same with the UserGroupArray relationship of the Group db-entity).
However, the checkbox in the Modeler is disabled.

When I manually edit the dataMap.map.xml file to set the
"toDependentPK=true" for the respective relationships, my application works
fine. But a problem occurs when I open the cayenne.xml file again in the
modeler.

Initially, the "To Dep PK" checkbox shows checked as I specified manually in
the map.xml file. However, when I save the cayenne.xml file again, the
"toDependentPK=true" gets erased from the map.xml file and, as a result, I
don't see the "To Dep PK" checkboxes checked anymore in the Modeler.

Please tell me what is the workaround for this, as it is very critical for
me to set up the relationships correctly.

Sincerely,

Rashid Khan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message