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 ; }
Checks whether the given class maps to a different table but also has the given collection .