I don't know if this is the right way to do this, but here's how I do it:
ObjectId objId = new ObjectId(MyObject.class, "pkey", myObjectId);
MyObject cr = (MyObject) dataContext.refetchObject(objId);
This is assuming that you have created a getId() function on the MyObject class to fetch the ObjectId from...
Any other solutions are greatly welcome!
Mike.
-----Original Message-----
From: johannes schmidt [mailto:e002753..tudent.tuwien.ac.at]
Sent: Monday, May 17, 2004 5:40
To: cayenne-use..bjectstyle.org
Subject: beginners question
hi!
if got a rather odd question but don't know the way how to do it in a good
way:
how do I manage to write a cayenne dataobject somehow to a html-forum and
than get it back upon the response of the webclient?
like:
<input type="checkbox" name="blabla" value="what goes here?????">
should i serialize the objects to the value field or is there any other,
better solution? (using object ids or some other stuff...)
would appreciate if you share your experience with this kind of problem!
thx, johannes
This archive was generated by hypermail 2.0.0 : Mon May 17 2004 - 11:03:00 EDT