Andrey Razumovsky updated CAY-1077:
-----------------------------------
Attachment: patch-CAY-1077.txt
You can now try the new dialog. In some way, the process of mapping a relation is now reverted. Before you had to choose target first, and then complete the path - now you in a short sequence of clicks select the path, and the target is completed automatically.
Still, there are few cases when you need to select the target:
1. When there are multiple ObjEntities mapped to one DbEntity, which is last in the path, and path browser chose the wrong one for you.
2. When you want to create new DbRelationship to another entity from ObjRelationship dialog.
If the targets in combo and path browser do not match (that can only happen when you set wrong target manually the target after selecting the path), path browser is valued higher.
-- EntityRelationshipsModel class is not used now, so if you think it is worthless (I do) please remove it and underlying JUnit test.
By the way, mapping of many-to-many relationship (with middle Join table) is two clicks now. I don't see how that can be improved any futher :)
> ObjRelationship Mapping Dialog Improvements
> -------------------------------------------
>
> Key: CAY-1077
> URL: https://issues.apache.org/cayenne/browse/CAY-1077
> Project: Cayenne
> Issue Type: Improvement
> Components: CayenneModeler GUI
> Affects Versions: 3.0
> Reporter: Andrus Adamchik
> Assignee: Kevin Menard
> Fix For: 3.0
>
> Attachments: patch-CAY-1077.txt
>
>
> [This is a GSoC 2008 task]
> The biggest complaint about the ObjRelationship mapping dialog is that it is often unclear how it operates, especially to the new users. I.e. empty list of DbRelationships is displayed as a white area, not giving any hints on what needs to be done to map a relationship. So that's confusing. Same thing when you add 1 path component, there is no hint that you can chain more path components for the flattened relationship.
> At the minimum we may just add some hint text ("Select next DbRelationship" in grey over the next available dropdown), but ideally we should implement a path browser, similar to how the SelectQuery prefetch and ordering browsers operate (and similar to how OS X Finder does).
-- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
This archive was generated by hypermail 2.0.0 : Sat Jul 05 2008 - 15:34:18 EDT