For some reason, I thought CayenneDataObject had a
writeNestedProperty() method, but it doesn't seem to.  It looks like
PropertyUtils has the ability to do this, though (although I might
need to patch it).  Would it make since to make writing nested paths
available in CayenneDataObject, too?

Also, while I'm thinking of path-type things, would it make since to
change readNestedProperty() to handle this case (quoting from the
JavaDoc):

Read to-many relationship in the middle of the path (throws exception):
String name = (String)artist.readNestedProperty("paintingArray.paintingName");

If memory serves, I believe EOF handles this situation by returning an
array or list of paintingName values.  Then you could do:

List names = (List) artist.readNestedProperty("paintingArray.paintingName");

Thanks,

/dev/mrg

Reply via email to