cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Exception: No property for arcId
Date Wed, 27 Jun 2007 11:08:59 GMT
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*)


Mime
View raw message