cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky (JIRA)" <>
Subject [jira] Updated: (CAY-1104) Modeler misses new renamed attributes, relationship mappings
Date Fri, 05 Sep 2008 09:38:11 GMT


Andrey Razumovsky updated CAY-1104:

    Attachment: fix-scenario1.txt

The first bug happens because-of map of attributes in DbEntity is not updated properly (i.e.
map key is old, but attr itself has new name). This is easy to fix (I uploaded small patch
which does manual update), but I still cannot figure out why it works in M4. The only way
to update cache automatically seems to have DbEntity as registered DbAttributeListener. But
noone adds it to ProjectController. So I'm a bit confused here.

Scenario 2 is about table behavior. Target field (or any other table editor information!)
will not be saved if you lose table's focus when table is being edited. I.e. I assume the
information gets lost when you press 'Done' while combo is edited and filled with new unsaved
information. If you hit 'Enter' or move focus to other column, new info will be applied.
Similiar sutiation can happen e.g. when you switch to other entity in the tree while editing
attribute's name. Other VERY irritating thing is that editor information is lost when you
click at table's header.
We have two choices here:
#1. Workaround: stop and save table editing when hitting 'Done'
#2. stop and save table editing anytime focus is lost.

Personally I'd prefer #2 more but note that then the only way to cancel editing will be to
hit 'Escape'

> Modeler misses new renamed attributes, relationship mappings
> ------------------------------------------------------------
>                 Key: CAY-1104
>                 URL:
>             Project: Cayenne
>          Issue Type: Bug
>          Components: CayenneModeler GUI
>    Affects Versions: 3.0
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.0
>         Attachments: fix-scenario1.txt
> Something else is badly broken on the trunk compared to M4. 
> Scenario 1:
> 1. Add a new DbAttribute to an existing DbEntity. 
> 2. Rename it from default "untitledXXX" to something else.
> 3. Go the ObjEntity of this DbEntity and try to add a new ObjAttribute
> At this point the list of DbAttributes still lists "untitledXXX" , not the new name of
the new DbAttribute. 
> Scenario 2:
> 1. Add a new DbRelationship between 2 existing DbEntities
> 2. Open join mapping dialog and select source and target keys
> 3. Close join mapping dialog
> 4. Open it again
> At this point join target is blank

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

View raw message