cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Fwd: [jira] [Updated] (CAY-1834) Exception: ToManyList cannot be cast to DataObject
Date Tue, 18 Jun 2013 11:21:25 GMT
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
View raw message