cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <>
Subject API for changing to-many relationships
Date Fri, 04 Oct 2013 21:42:09 GMT
I'm curious about the API for changing to-many relationships.

It looks like for CayenneDataObject subclasses List (and probably Map)
relationships only support changes made using the addToManyTarget,
removeToManyTarget, and setToManyTarget methods -- with the exception that
add and addAll seem to work, but not remove, removeAll, retainAll or clear.

But for Set relationships the regular java collection methods can be used.
 And for ROP objects (direct PersistentObject subclasses) the regular java
collection methods are also supported.

Is that a fair assessment?  If so, this inconsistency seems less than
ideal.  Thoughts?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message