private void ensureReferencedPKs ( ModelDef modelDef , ReferenceDescriptorDef refDef ) throws ConstraintException { String targetClassName = refDef . getProperty ( PropertyHelper . OJB_PROPERTY_CLASS_REF ) ; ClassDescriptorDef targetClassDef = modelDef . getClass ( targetClassName ) ; ensurePKsFromHierarchy ( targetClassDef ) ; }
Ensures that the primary keys required by the given reference are present in the referenced class .