/** * PUBLIC: * Set the field name in the mapping. */ public void setFieldName(String FieldName) { setField(new DatabaseField(FieldName)); }
/** * PUBLIC: * Set the field name in the mapping. */ public void setFieldName(String FieldName) { setField(new DatabaseField(FieldName)); }
/** * PUBLIC: * Set the field name in the mapping. */ public void setFieldName(String FieldName) { setField(new DatabaseField(FieldName)); }
/** * INTERNAL: * Set the DatabaseField that will represent the key in a DirectMapMapping * @param keyField * @param descriptor */ public void setKeyField(DatabaseField keyField, ClassDescriptor descriptor){ if (keyMapping == null){ DirectToFieldMapping newKeyMapping = new DirectToFieldMapping(); newKeyMapping.setField(keyField); newKeyMapping.setDescriptor(descriptor); setKeyMapping(newKeyMapping); } if (((DatabaseMapping)keyMapping).isDirectToFieldMapping()){ ((DirectToFieldMapping)keyMapping).setField(keyField);; } }