On Dec 6, 2004, at 20:29, Gentry, Michael wrote:
> anObject.removeFromFoo(objectToBeRemoved);
> anObject.getDataContext().commitChanges();
>
> Will Cayenne issue a DELETE statement for me? Or do I also need
> (before
> commitChanges()):
This is controlled by the "To Dep PK" flag in the modeler:
http://objectstyle.org/cayenne/modelerguide/modeling-db-layer/to-dep-
pk.html
> anObject.getDataContext().deleteObject(objectToBeRemoved);
>
> If I do need that, do I need both removeFromFoo() and deleteObject()?
You will have to do both if "To Dep PK" are not checked.
- Tore.
This archive was generated by hypermail 2.0.0 : Mon Dec 06 2004 - 15:35:49 EST