Re: Exception: No property for arcId

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Jun 27 2007 - 07:08:59 EDT

  • Next message: Andrus Adamchik: "Re: 1.2.1: Loosing references to 1 to 1 reference objects"

    Could you doublecheck the model making sure the 'toDepartmentPrefix'
    relationship is still mapped?

    I often get similar errors when I forget to refresh the source tree
    in Eclipse after changing the mapping in the Modeler.

    Andrus

    On Jun 26, 2007, at 5:20 PM, Michael Lepine wrote:

    > Hello all. I am getting the CayenneRuntimeException below when
    > trying to
    > invoke the setToOneTarget on one of my generated classes. The _Req and
    > _DepartmentPrefix classes are generated classes. This same code worked
    > yesterday morning but after some updates to the database and
    > subsequent
    > updates to the model in Cayenne, I'm getting this error now.
    >
    > I searched the archives but didn't see much on why I would be
    > getting this
    > error. Does anyone have an idea why I'm receiving it and how I can
    > fix it?
    >
    > Thanks in advance for any help.
    >
    >
    > Stacktrace:
    > *
    >
    > org.apache.cayenne.CayenneRuntimeException*: [v.2.0.3 May 6 2007] No
    > property for arcId toDepartmentPrefix
    >
    > at org.apache.cayenne.access.ObjectDiff.addDiff(*ObjectDiff.java:228*)
    >
    > at org.apache.cayenne.access.ObjectStore.registerDiff
    > (*ObjectStore.java:207*
    > )
    >
    > at org.apache.cayenne.access.ObjectStore.recordArcCreated
    > (*ObjectStore.java
    > :132*)
    >
    > at org.apache.cayenne.CayenneDataObject.setToOneTarget(*
    > CayenneDataObject.java:297*)
    >
    > at com.buyspeed.dao.auto._Req.setToDepartmentPrefix(*_Req.java:521*)



    This archive was generated by hypermail 2.0.0 : Wed Jun 27 2007 - 07:09:25 EDT