if (vi instanceof BeanValueInfo) {
BeanValueInfo bvi = (BeanValueInfo)vi;
//
ManyToOne manyToOneAnn = propertyInfo.getAnnotation(ManyToOne.class);
RelationshipType type = manyToOneAnn.type();
//
if (type == RelationshipType.HIERARCHIC) {
RelationshipMapping hierarchyMapping = new ManyToOneMapping(bvi.getTypeInfo(), RelationshipType.HIERARCHIC);
PropertyMapping<RelationshipMapping> manyToOneMapping = new PropertyMapping<RelationshipMapping>(propertyInfo, hierarchyMapping);