FAQ
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).

Search Discussions

  • Andrus Adamchik at Aug 25, 2011 at 3:56 pm
    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).
  • Joel Becker at Aug 25, 2011 at 6:22 pm
    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 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).
  • Aristedes Maniatis at Aug 25, 2011 at 11:50 pm

    To ensure you are looking at the current release of documentation, make sure your URL starts like this:

    http://cayenne.apache.org/doc/


    Ari


    --
    -------------------------->
    Aristedes Maniatis
    GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriescayenne
postedAug 25, '11 at 3:48p
activeAug 25, '11 at 11:50p
posts4
users3
websitecayenne.apache.org

People

Translate

site design / logo © 2023 Grokbase