Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0
-
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