Mike Kienenberger <mkienen..laska.net> wrote:
> Andrus Adamchik <andru..bjectstyle.org> wrote:
> > ObjEntity is aware of its DataMap, so simply do
> > "anObjEntity.getDataMap()"
> >
> > On Apr 14, 2004, at 12:35 PM, Mike Kienenberger wrote:
> > >
> > > *..eprecated Since 1.1 use {@link #lookupDataNode(DataMap)}
since
> > > * queries are not necessarily based on an ObjEntity.
>
> Thanks.
>
> Should the documentation be updated to reflect that?
>
> ..ink #lookupDataNode(#lookupDataNode(objEntity.getDataMap()))}
Along those lines, why is the code
if (this.getParent() == null) {
throw new CayenneRuntimeException("Cannot use a DataContext
without a parent");
}
return this.getParent().dataNodeForObjEntity(objEntity);
instead of
return this.lookupDataNode(anObjEntity.getDataMap());
if lookupDataNode is the suggested replacement?
-Mike
This archive was generated by hypermail 2.0.0 : Wed Apr 14 2004 - 14:20:10 EDT