protected MPackageInfo getPackage(CClassRef info) { final String fullName = info.fullName(); return getPackage(fullName); }
public boolean isSelfOrAncestorRootClass(ProcessModel context, CClassRef classRef) { final String className = classRef.fullName(); try { final Class<?> referencedClass = Class.forName(className); return isSelfOrAncestorRootClass(referencedClass); } catch (ClassNotFoundException cnfex) { logger.warn("Referenced class [" + className + "] could not be found, this may lead to incorrect generation of the identifier fields."); return true; } }
public boolean isSelfOrAncestorRootClass(ProcessModel context, CClassRef classRef) { final String className = classRef.fullName(); try { final Class<?> referencedClass = Class.forName(className); return isSelfOrAncestorRootClass(referencedClass); } catch (ClassNotFoundException cnfex) { logger.warn("Referenced class [" + className + "] could not be found, this may lead to incorrect generation of the identifier fields."); return true; } }
protected String getLocalName(CClassRef info) { final String fullName = info.fullName(); try { final Class<?> _class = Class.forName(fullName); return getLocalName(_class); } catch (ClassNotFoundException cnfex) { return getLocalName(fullName); } }
protected MContainer getContainer(CClassRef info) { final String fullName = info.fullName(); try { final Class<?> _class = Class.forName(fullName); return getContainer(_class); } catch (ClassNotFoundException cnfex) { return getPackage(info); } }
public String getEntityTableName(Mapping context, final CClass classInfo) { if (classInfo instanceof CClassInfo) { return getName(context, getTableName(((CClassInfo) classInfo).fullName())); } else if (classInfo instanceof CClassRef) { final String fullName = ((CClassRef) classInfo).fullName(); return getName(context, getTableName(fullName)); } else { throw new AssertionError("Unexpected type."); } }
public String getEntityTableName(Mapping context, final CClass classInfo) { if (classInfo instanceof CClassInfo) { return getName(context, getTableName(((CClassInfo) classInfo).fullName())); } else if (classInfo instanceof CClassRef) { final String fullName = ((CClassRef) classInfo).fullName(); return getName(context, getTableName(fullName)); } else { throw new AssertionError("Unexpected type."); } }
+ propertyInfo.getName(true) + "] is a single hetero reference containing unsupported CClassRef element [" + classRef.fullName() + "]. See issue #94.");
+ propertyInfo.getName(true) + "] is a single hetero reference containing unsupported CClassRef element [" + classRef.fullName() + "]. See issue #94.");