* Return all the fields
*/
@Override
public Vector getFields() {
Vector result = new Vector();
InterfaceContainerPolicy icp = getInterfaceContainerPolicy();
// if this is a map entry get all the fields for both the key and the value
if (returnMapEntry || !icp.isMappedKeyMapPolicy()){
result.addAll(getBaseExpression().getFields());
} else if (isAttribute()) {
DatabaseField field = getField();
if (field != null) {
result.add(field);