cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <johnth...@gmail.com>
Subject Re: [jira] [Updated] (CAY-1834) Exception: ToManyList cannot be cast to DataObject
Date Tue, 18 Jun 2013 14:22:24 GMT
For what it's worth, I've had this commented out for quite some time now
and have been running it in production.  It was necessary because my entity
classes are subclasses of PersistentObject rather than CayenneDataObject
and they don't have any place to store the generated "runtimeRelationshipX"
values.

John


On Tue, Jun 18, 2013 at 6:21 AM, Andrus Adamchik <andrus@objectstyle.org>wrote:

> FYI … another case of runtime rels messing things up. Time to get rid of
> them, replacing the functionality with some other algorithm.
>
> Andrus
>
>
> Begin forwarded message:
>
> > ---
> a/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/configuration/server/DataDomainProvider.java
> > +++
> b/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/configuration/server/DataDomainProvider.java
> > @@ -193,7 +193,7 @@ public class DataDomainProvider implements
> Provider<DataDomain> {
> >         }
> >
> >         dataDomain.getEntityResolver().applyDBLayerDefaults();
> > -        dataDomain.getEntityResolver().applyObjectLayerDefaults();
> > +        //dataDomain.getEntityResolver().applyObjectLayerDefaults();
> >
> >         for (DataNodeDescriptor nodeDescriptor :
> descriptor.getNodeDescriptors()) {
> >             DataNode dataNode = new DataNode(nodeDescriptor.getName());
> >
> >
> > Feel free to create a custom DataDomainProvider with this change and
> bind it via DI... On the Cayenne end we'll probably need to get rid of
> "runtime" obj relationships. But that's something that will require more
> research.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message