String columnName = null;
List keys = pk.getPrimaryKey();
int size = keys.size();
for(int i = 0; i < size; i++){
ItemDescriptor item = (ItemDescriptor)keys.get(i);
if(attrName.equals(item.getPropertyName())){
columnName = item.getColumnTableName();
return columnName;
}
}
size = itemDescriptors.size();
for (int i = 0; i < size; i++ ){
ItemDescriptor item = (ItemDescriptor)itemDescriptors.get(i);
if(attrName.equals(item.getPropertyName())){
columnName = item.getColumnTableName();
return columnName;
}
}
return columnName;
}