ernst leonhard wrote:
>
> Hella all,
>
> I tried this code-fragment from the "Peer" documentation:
>
> Item itm = new Item()
> data.getParameters().setProperties(itm);
> Object o = ItemPeer.doInsert (itm);
>
> The compiler returns:
> [javac]
> .../WEB-INF/src/java/de/sn/modules/actions/AddCategory.java:31:
> Incompatible type for declaration. Can't convert void to
> java.lang.Object.
> [javac] Object o = CategoryPeer.doInsert(cat);
>
> this modification works:
> /* Object o = */ ItemPeer.doInsert (itm);
>
You can:
ItemPeer.doInsert(itm);
Object o = itm.getPrimaryKey();
> But:
> I can't find any method "doInsert(BaseObject)" in the peer classes ??
> where is the implementaion of this method ?
>
BaseItemPeer
> thanks
> --
> leo
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]