You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2013/09/19 09:26:51 UTC

[jira] [Created] (CAY-1871) cdbimport: better naming of multiple relationships to the same entity

Andrus Adamchik created CAY-1871:
------------------------------------

             Summary: cdbimport: better naming of multiple relationships to the same entity
                 Key: CAY-1871
                 URL: https://issues.apache.org/jira/browse/CAY-1871
             Project: Cayenne
          Issue Type: Improvement
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik


Say we have the following tables:

team:
  ID PK

game: 
  ID PK
  HOME_TEAM_ID FK
  AWAY_TEAM_ID FK

cdbimport reverse engineering results in correct property names in Game ('homeTeam', 'awayTeam'), but confusingly named reverse relationships from Team ('games', 'games1'). Wonder if we can devise an algorithm to name reverse  reslationships something more meaningful based on the FK name too? Maybe 'homeTeamGames' / 'awayTeamGames'?

This may not be limited to 'cdbimport' (IIRC Modeler does a similar thing)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira