private FieldDescriptorDef cloneField ( FieldDescriptorDef fieldDef , String prefix ) { FieldDescriptorDef copyFieldDef = new FieldDescriptorDef ( fieldDef , prefix ) ; copyFieldDef . setOwner ( this ) ; // we remove properties that are only relevant to the class the features are declared in copyFieldDef . setProperty ( PropertyHelper . OJB_PROPERTY_IGNORE , null ) ; Properties mod = getModification ( copyFieldDef . getName ( ) ) ; if ( mod != null ) { if ( ! PropertyHelper . toBoolean ( mod . getProperty ( PropertyHelper . OJB_PROPERTY_IGNORE ) , false ) && hasFeature ( copyFieldDef . getName ( ) ) ) { LogHelper . warn ( true , ClassDescriptorDef . class , "process" , "Class " + getName ( ) + " has a feature that has the same name as its included field " + copyFieldDef . getName ( ) + " from class " + fieldDef . getOwner ( ) . getName ( ) ) ; } copyFieldDef . applyModifications ( mod ) ; } return copyFieldDef ; }
Clones the given field .