Support for mapping to-many as Maps and Sets and Collections
------------------------------------------------------------

                 Key: CAY-848
                 URL: https://issues.apache.org/cayenne/browse/CAY-848
             Project: Cayenne
          Issue Type: New Feature
          Components: Cayenne Core Library
    Affects Versions: 3.0
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik
             Fix For: 3.0


Per JPA spec we should support mapping to-many relationships as Lists, 
Collections, Sets and Maps (we currently only do Lists). Need to add that stuff 
to Cayenne classic and map to JPA.  I see the following subtasks:

* Support explicit to-many semantics mapping in ObjRelationship (collection 
class; map key for Maps)
* In the Modeler allow to specify the choices in ObjRelationship Inspector
* In class generation template use correct collection type (I guess for maps 
the add/remove semantics can be the same as for lists ... not sure if we need 
removeFrom(Object key)??)
* Runtime support, including reverse relationships
* Testing
* Bridging JPA mapping 


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

Reply via email to