Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-301
Here is an overview of the issue:
---------------------------------------------------------------------
Key: CAY-301
Summary: Miscellaneous Modeler Cleanups
Type: Improvement
Status: Assigned
Priority: Major
Project: Cayenne
Components:
Cayenne Core Library
CayenneModeler GUI
Versions:
1.2 [DEV]
Assignee: Andrus Adamchik
Reporter: Garry Watkins
Created: Thu, 7 Apr 2005 5:23 PM
Updated: Thu, 7 Apr 2005 5:23 PM
Environment: These changes can be patched against HEAD
Description:
Hello, all I am new to the list, and to cayenne. I have been using WebObjects for the last three years, and am interested in using Cayenne and Tapestry for my web development. As a result of this decision I took the liberty of making a few changes to the modeler tool. I am attaching some screen shots of the changes that I have made. Please let me know what the process is for submitting a patch.
I have made the following modifications:
A) Added some context sensitive toolbars on all of the Db/Obj entity tabs.
a. ObjEntity - On the main tab I added a sync with db entity button, add new attribute, add new relationship
b. ObjEntity & DbEntity - On the attribute tab I added a new Attribute button and a Remove Attribute button
c. ObjEntity & DbEntity - On the relationship tab I added a new Relationship button and a Remove Relationship button
d. DbEntity - On the main tab, I added create new ObjEntity - this will create an object entity for the specified db entity and synchronize the new object entity with the db entity. I also added a synch all object entities with the current db entity. I need to fix the sync code so that It will remove attributes from the obj entity that are now used in relationships. I will probably get to this a little later this week.
B) I hijacked a few icons from eclipse and wolips projects
a. EOModeler Icon
b. New Class (ObjEntity) icon
c. Class (ObjEntity) icon
d. Generate Java Icon on Tools menu.
C) I also fixed some annoying behavior from the modeler. Sometimes when changing ObjEntities, it would switch to the attribute tab. When switching tabs - I now deselect what ever row was selected in the either the attribute or relationship table. This is so I could use the remove button in the toolbar of the attribute/relations tabs.
D) I made numerous changes to handling of different name changes, so that they would propagate the name changes correctly to dependent attributes, relationships, entities ...
e.g. If a DbEntity name was changed it should propagate the changes to all dependent object entities, all db relationships with the DbEntity as the target. If a DbAttribute was changed it will propagate the changes to the ObjEnities that use that attribute.
The logic before would just delete the other things instead of updating them to point to the correct item.
E) When synchronizing ObjEntities with DbEntities, it would use the DbEntity relationship names and would not convert them to java naming conventions. e.g. a TO_USER as a DbRel would come over as TO_USER. Now it will come over as toUser.
The patch is quite large.
I made a change to the AST.java code because i am using JDK5.0, and the visibility of peek() is public in JDK5.0. It complained about reduced visibility.
I will wait till this is put into CVS to generate the next patch where JDK 5.0 is complaining about deprecations.
Hope these changes will be accepted. I spent a good deal of time on them.
Thanks
Garry Watkins
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://objectstyle.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
This archive was generated by hypermail 2.0.0 : Thu Apr 07 2005 - 17:24:21 EDT