"property" package refactoring
------------------------------

         Key: CAY-701
         URL: http://issues.apache.org/cayenne/browse/CAY-701
     Project: Cayenne
        Type: Task

  Components: Cayenne Core Library  
    Versions: 3.0    
    Reporter: Andrus Adamchik
 Assigned to: Andrus Adamchik 
     Fix For: 3.0


org.apache.cayenne.property package requires some refactoring now that we can 
identify all groups of persistent objects that we need to support via the 
Cayenne stack. Those are:

* Enhanced POJO implementing "Persistent" via the enhancer.
* Persistent objects generated vi client template (using ValueHolder for the 
to-one relationships)
* DataObject (generic objects that store properties in a map and provide access 
via generic methods on the object; using Fault class for lazy faulting)

The few problems this refactoring effort will try to address:

* Replacing property descriptors inheritance with composition/decoration, thus 
separating different concerns like faulting and property access, and  making 
the descriptors more flexible.
* Naming - the current class naming we got was due to the implementation based 
on inheritance. Better naming for the property interfaces will be something 
like this:
- AttributeProperty
- ToOneProperty
- ToManyProperty



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/cayenne/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to