From 0baa46d5ee4f62adb58f436af4978d9468454870 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Fri, 22 Jun 2012 10:11:17 +0200 Subject: Modules and entitycreation support Aggregations, collection properties and class identifiers --- src/main/java/com/c2kernel/collection/RelationshipUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/c2kernel/collection/RelationshipUtils.java') diff --git a/src/main/java/com/c2kernel/collection/RelationshipUtils.java b/src/main/java/com/c2kernel/collection/RelationshipUtils.java index 6e35ac8..0151b7e 100644 --- a/src/main/java/com/c2kernel/collection/RelationshipUtils.java +++ b/src/main/java/com/c2kernel/collection/RelationshipUtils.java @@ -19,7 +19,7 @@ public class RelationshipUtils if (entityKey == -1) return false; try { - if ( ((Aggregation) Gateway.getProxyManager().getProxy(new EntityPath(entityKey)).getObject(ClusterStorage.COLLECTION+"/Composition" )).size() > 0 ) + if ( Gateway.getProxyManager().getProxy(new EntityPath(entityKey)).getContents(ClusterStorage.COLLECTION).length > 0 ) return true; } catch (Exception ex) -- cgit v1.2.3