if (variableOneToOne != null) {
// Parent class looks for 'targetEntity' and not 'targetInterface'
// Need to set it correctly.
setTargetEntity((Class) MetadataHelper.invokeMethod("targetInterface", variableOneToOne));
m_discriminatorColumn = new DiscriminatorColumnMetadata((Annotation) MetadataHelper.invokeMethod("discriminatorColumn", variableOneToOne), accessibleObject);
for (Annotation discriminatorClass : (Annotation[]) MetadataHelper.invokeMethod("discriminatorClasses", variableOneToOne)) {
m_discriminatorClasses.add(new DiscriminatorClassMetadata(discriminatorClass, accessibleObject));
}
}