Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-848

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0M2, 3.0
    • Core Library
    • None

    Description

      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
      • Support for prefetching
      • Testing
      • Bridging JPA mapping

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: