code: private boolean containsCollectionAndMapsToDifferentTable(CollectionDescriptorDef origCollDef, TableDef origTableDef, ClassDescriptorDef classDef)
      {
          if (classDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_GENERATE_TABLE_INFO, true) &&
              !origTableDef.getName().equals(classDef.getProperty(PropertyHelper.OJB_PROPERTY_TABLE)))
          {
              CollectionDescriptorDef curCollDef = classDef.getCollection(origCollDef.getName());
  
              if ((curCollDef != null) &&
                  !curCollDef.getBooleanProperty(PropertyHelper.OJB_PROPERTY_IGNORE, false))
              {
                  return true;
              }
          }
          return false;
      }
docs: Checks whether the given class maps to a different table but also has the given collection.
  
  @param origCollDef  The original collection to search for
  @param origTableDef The original table
  @param classDef     The class descriptor to test
  @return <code>true</code> if the class maps to a different table and has the collection