cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Schmidt (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAY-1205) toOne change + rename field leads to project that doesn't validate anymore
Date Wed, 08 Apr 2009 13:17:13 GMT

    [ https://issues.apache.org/jira/browse/CAY-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697010#action_12697010
] 

Joseph Schmidt commented on CAY-1205:
-------------------------------------

I tried to reproduce the problem with a simple example (with just 3 or 4 tables) to be able
to attach it here, but the above problem just does not happen for such small and simple schemes
:(.

Another strange behavior, is that if I repeat the process (delete everything and reverse engineer
again), the validation problem seems to vary if I hit Ctrl+S at various intervals (just a
bad custom of mine :) ).

Another error is  that hierarchies (FK to the same table) seem to loose their reverse relationship
mapping or it changes to a "toOne" even if the DB Relationship is a toMany. If I hit "sync
with DB" than now fields show up with field_name1 style naming.

> toOne change + rename field leads to project that doesn't validate anymore
> --------------------------------------------------------------------------
>
>                 Key: CAY-1205
>                 URL: https://issues.apache.org/jira/browse/CAY-1205
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0M5
>            Reporter: Joseph Schmidt
>            Priority: Critical
>
> Cayenne modeler seems to behave very strange after changing the relationship type from
toMany at toOne: when doing a relationship renamename, it does not validate anymore. It complaints
that "ObjRelationship xxx has no DbRelationship mapping", but there is - i.e. all names are
consistent.
> Scenario:
> - reverse engineer a database with many FKs .
> - set for some db entities the relationship from toMany to toOne (since they're supposed
to be one to one).
> - Error 1: Cayenne Modeler doesn't seem to pick this change with the "smart naming strategy"
- the field names still remain at plural (exactly how were generated during the reverse engineering
process)
> - trying to manually change those field names from plural to singular from
> - Error 2: project does not validate anymore after this (even if every renaming was done
consistently in DB and OBJ relationships too).
> Other usability problem:
> - in the Attributes tab of an entity, I can see the corresponding DB fields (so I know
it was selected correctly), but in the relationships entity tab I can't see this anymore :(,
so I can't possibly know why is cayenne complaining about validity (a visual inspection of
all fields in CM shows that it should be correct)  :(.
> Also the Log Console shows no errors - only the usual blue logging messages.
> What can I do? 
> thanks,
> Joseph.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message