SingleValuedPropertyInfo svpi = (SingleValuedPropertyInfo)propertyInfo;
ValueInfo vi = svpi.getValue();
if (vi instanceof BeanValueInfo) {
BeanValueInfo bvi = (BeanValueInfo)vi;
ClassTypeInfo typeInfo = bvi.getTypeInfo();
OneToOne oneToOneAnn = propertyInfo.getAnnotation(OneToOne.class);
// The mapped by of a one to one mapping discrimines between the parent and the child
RelationshipMapping hierarchyMapping;
MappedBy mappedBy = propertyInfo.getAnnotation(MappedBy.class);
if (mappedBy != null) {