RE: Working with ObjectIds

From: Gentry, Michael (michael_gentr..anniemae.com)
Date: Wed Sep 08 2004 - 10:58:14 EDT

  • Next message: Gentry, Michael: "CM Recent Files List?"

    You can certainly pass your primary key around in the URL, but keep in
    mind this opens the application up to spoofing (which, depending on the
    nature of your application, could be a very bad thing). If there are no
    security issues, though, it should be fine. You can use the new
    DataObjectUtils (assuming you have a recent release of Cayenne) to fetch
    the object based upon the primary key:

    http://www.objectstyle.org/cayenne/api/cayenne/org/objectstyle/cayenne/D
    ataObjectUtils.html

    /dev/mrg

    -----Original Message-----
    From: Kevin J. Menard, Jr. [mailto:nirvdru..egativetwenty.net]
    Sent: Wednesday, September 08, 2004 10:49 AM
    To: cayenne-use..bjectstyle.org
    Subject: Working with ObjectIds

    Hi,

    Sorry if this is a FAQ, but all I found in the docs was that a developer
    really needn't concern himself with ObjectIds. However, I'm working on
    a Tapestry app, and I'd like to pass the id of an object as a service
    parameter in a DirectLink. Then in my listener, I'll reconstruct the
    object and do whatever it is I want to do with it. So, how would I go
    about accomplishing this? Is this even the right technique to be using?

    Thanks,
    Kevin



    This archive was generated by hypermail 2.0.0 : Wed Sep 08 2004 - 10:58:19 EDT