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/DependencyDescription.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/c2kernel/collection/DependencyDescription.java') diff --git a/src/main/java/com/c2kernel/collection/DependencyDescription.java b/src/main/java/com/c2kernel/collection/DependencyDescription.java index 547a286..681e98b 100644 --- a/src/main/java/com/c2kernel/collection/DependencyDescription.java +++ b/src/main/java/com/c2kernel/collection/DependencyDescription.java @@ -1,5 +1,6 @@ package com.c2kernel.collection; +import com.c2kernel.common.ObjectNotFoundException; import com.c2kernel.property.PropertyDescriptionList; import com.c2kernel.property.PropertyUtility; import com.c2kernel.utils.CastorHashMap; @@ -17,7 +18,7 @@ public class DependencyDescription extends Dependency implements CollectionDescr } @Override - public Collection newInstance() { + public Collection newInstance() throws ObjectNotFoundException{ String depName = getName().replaceFirst("\'$", ""); // HACK: Knock the special 'prime' off the end for the case of descriptions of descriptions Dependency newDep = new Dependency(depName); if (mMembers.list.size() == 1) { // constrain the members based on the property description -- cgit v1.2.3