cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jackCHEN (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAY-400) Support for user properties of DataMap objects.
Date Fri, 05 Jun 2009 08:50:07 GMT

     [ https://issues.apache.org/jira/browse/CAY-400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

jackCHEN updated CAY-400:
-------------------------

    Attachment: cayenne-modeler-patch-2009-6-5
                cayenne-jdk1.5-patch-2009-6-5

On the basis of the fore Patch on 31/May/2009, i edited the modeler to add a new component
for dealing with the "Property".

Firstly, the name of new added Classes in last patch had some changes. 
"CayenneMapItem" was changed to "DataMapElement" as the superClass of all elements in DataMap.
"Info"  was changed to a inner Class named "Property" in "DataMapElement".

Secondly,new added component in these patches can show,add,edit,delete Property(key/value)
of selected DataMapElement. All DataMapElementa will share a unitfied  Property key list.

Lastly, i edited "subclass.vm" to demonstrate generating "comments" in JAVA DOC and "annotation"
for a ObjEntity when the ObjEntity using "doc","annotation" as the default keys.










I add a Abstract CayenneMapItem Class which provides comment function.Through inheriting it,
Entity, Relationship, EntityListener, Attribute automatically get the same function.

According to the detailed key value, we can define different operations.

I.E.

        Use "doc" key to generate Javadocs during class generation
        Use "annotation" key to generate JDK 1.5 annotations during class generation 

> Support for user properties of DataMap objects.
> -----------------------------------------------
>
>                 Key: CAY-400
>                 URL: https://issues.apache.org/jira/browse/CAY-400
>             Project: Cayenne
>          Issue Type: New Feature
>          Components: Cayenne Core Library, CayenneModeler GUI
>    Affects Versions: 3.0
>            Reporter: Andrus Adamchik
>            Assignee: Ari Maniatis
>             Fix For: Short term future
>
>         Attachments: cayenne-jdk1.5-patch-2009-6-5, cayenne-modeler-patch-2009-6-5, patch_2009-5-28
>
>
> We need to support user defined properties attached to 
> * Entities
> * Attributes
> * Relationships
> (Obj and Db). This feature is similar to JDK 1.5 annotations. 
> Basic support: 
> * allow to enter string key/value pairs in the Modeler and save them in XML.
> * Just like with JVM annotations implement some logic to load annotations conditionally.
> Ideas for using this info in Cayenne:
> * Attach DB comments on reverse-engineer
> * Use certain keys to generate Javadocs during class generation
> * Use certain keys to generate JDK 1.5 annotations during class generation.

-- 
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