Nevermind, I was doing it incorrectly: i hadn't used the inspector on the entity table, and couldn't because the button was disabled, until i selected a target first. i found out the correct steps for creating relationships by following the mapping tutorial: http://cayenne.apache.org/doc20/tutorial-object-relational-mapping.html (As I figure things out I'm taking notes on the correct steps for creating a complete successful mapping in the modeller, so that I don't forget.) Thanks.
On Thu, Aug 25, 2011 at 10:55 AM, Andrus Adamchik <[email protected]>wrote: > To answer this question we need to see the data map XML. Could you paste it > to a reply message? > > On Aug 25, 2011, at 6:48 PM, Joel Becker wrote: > > > Hi. When Cayenne Modeller validates my mapping, i get several "...has no > > joins" warnings for different entities. I found this thread on the issue > > which suggests using the ObjEntity Inspector > > > http://mail-archives.apache.org/mod_mbox/cayenne-user/200908.mbox/%[email protected]%3E > > > > In the entity the "Database Mapping" icon (which i assume is the > "inspector" > > for entities) is disabled, so I go to the entity's corresponding object > and > > open the inspector for the corresponding relationship. When I go to > select > > the path to the target object, the object is unavailable in the path > lists > > at the bottom of the dialog. How does the dialog choose which paths to > > include? (I couldn't find any documentation on using that dialog, except > for > > the page on flattening many-to-many relationships.) > > > > Regardless of the path selector at the bottom of the dialog, it already > has > > the correct Target selected in the drop-down combo box, so i click done, > but > > still get the warning. I also verified that the related entity has the > other > > side of the relationship (to many). > >
