} else if(field.getType() == ToOneProvider.class) {
ParameterizedType genType = (ParameterizedType) field.getGenericType();
type = (Class) genType.getActualTypeArguments()[0];
}
MetaProxyField metaField = metaProxyProvider.get();
MetaAbstractClass<?> classMeta = metaInfo.findOrCreate(type);
if(theSuperclass != null) {
//we need to swap the classMeta to the more specific class meta which may have not been
//created yet, oh joy...so we findOrCreate and the shell will be filled in when processing
//that @NoSqlEntity when it scans the subclasses.
MetaClassInheritance meta = (MetaClassInheritance) classMeta;
classMeta = meta.findOrCreate(field.getType(), theSuperclass);
}
metaField.setup(t, field, colName, classMeta, isIndexed, isPartitionedBy);
return metaField;
}